diff --git a/debug.ino b/debug.ino index 56460e7..d7a76d9 100644 --- a/debug.ino +++ b/debug.ino @@ -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; diff --git a/schedule.h b/schedule.h index 720c360..f71fd31 100644 --- a/schedule.h +++ b/schedule.h @@ -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