Debug changes for new util

This commit is contained in:
Steve Howes
2019-03-05 13:32:47 +00:00
parent b4f0c89561
commit fad496f152
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -106,6 +106,26 @@ void task_debug_run()
{
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
{
debug_live_index = 0;
+1 -1
View File
@@ -11,7 +11,7 @@ unsigned long task_battery = 1; // Get initi
const unsigned long task_battery_interval = 265000; // 265ms
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_low = 0; // Idle