mirror of
https://github.com/stevenhowes/MX5-Arduino.git
synced 2026-05-27 00:03:37 +01:00
Debug changes for new util
This commit is contained in:
@@ -106,6 +106,26 @@ void task_debug_run()
|
|||||||
{
|
{
|
||||||
table_pulsewidth[index.toInt()] = value.toInt();
|
table_pulsewidth[index.toInt()] = value.toInt();
|
||||||
}
|
}
|
||||||
|
}else if(readbyte == 'p') // Dump PID
|
||||||
|
{
|
||||||
|
readbyte = Serial.read();
|
||||||
|
if(readbyte == 'v')
|
||||||
|
{
|
||||||
|
Serial.print("VOL: ");
|
||||||
|
Serial.println(battery_voltage_value);
|
||||||
|
} else if(readbyte == 't')
|
||||||
|
{
|
||||||
|
Serial.print("TPS: ");
|
||||||
|
Serial.println(throttle_current_value);
|
||||||
|
}else if(readbyte == 'r')
|
||||||
|
{
|
||||||
|
Serial.print("RPM: ");
|
||||||
|
Serial.println(rpm_current_value);
|
||||||
|
}else if(readbyte == 'm')
|
||||||
|
{
|
||||||
|
Serial.print("MAP: ");
|
||||||
|
Serial.println(map_current_value);
|
||||||
|
}
|
||||||
}else if(readbyte == 'i') // Disable index output
|
}else if(readbyte == 'i') // Disable index output
|
||||||
{
|
{
|
||||||
debug_live_index = 0;
|
debug_live_index = 0;
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ unsigned long task_battery = 1; // Get initi
|
|||||||
const unsigned long task_battery_interval = 265000; // 265ms
|
const unsigned long task_battery_interval = 265000; // 265ms
|
||||||
|
|
||||||
unsigned long task_debug = 0; // Triggers after init
|
unsigned long task_debug = 0; // Triggers after init
|
||||||
const unsigned long task_debug_interval = 387000; // 2s (eh?)
|
const unsigned long task_debug_interval = 187000; // 2s (eh?)
|
||||||
|
|
||||||
unsigned long task_tach_high = 0; // Ilde
|
unsigned long task_tach_high = 0; // Ilde
|
||||||
unsigned long task_tach_low = 0; // Idle
|
unsigned long task_tach_low = 0; // Idle
|
||||||
|
|||||||
Reference in New Issue
Block a user