1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Added KISS ESC sensor information for rpm and temperature to debug fields

This commit is contained in:
Bas Delfos 2017-03-28 23:11:23 +02:00
parent c39ab90bc6
commit 8dbb156ea0
3 changed files with 10 additions and 3 deletions

View file

@ -62,5 +62,7 @@ typedef enum {
DEBUG_ESC_SENSOR,
DEBUG_SCHEDULER,
DEBUG_STACK,
DEBUG_ESC_SENSOR_RPM,
DEBUG_ESC_SENSOR_TMP,
DEBUG_COUNT
} debugType_e;

View file

@ -323,7 +323,9 @@ static const char * const lookupTableDebug[DEBUG_COUNT] = {
"ANGLERATE",
"ESC_SENSOR",
"SCHEDULER",
"STACK"
"STACK",
"ESC_SENSOR_RPM",
"ESC_SENSOR_TMP"
};
#ifdef OSD

View file

@ -68,7 +68,7 @@ Byte 9: 8-bit CRC
DEBUG INFORMATION
-----------------
set debug_mode = DEBUG_ESC_TELEMETRY in cli
set debug_mode = DEBUG_ESC_SENSOR in cli
*/
@ -235,6 +235,9 @@ static uint8_t decodeEscFrame(void)
combinedDataNeedsUpdate = true;
frameStatus = ESC_SENSOR_FRAME_COMPLETE;
DEBUG_SET(DEBUG_ESC_SENSOR_RPM, escSensorMotor, escSensorData[escSensorMotor].rpm);
DEBUG_SET(DEBUG_ESC_SENSOR_TMP, escSensorMotor, escSensorData[escSensorMotor].temperature);
} else {
frameStatus = ESC_SENSOR_FRAME_FAILED;
}