mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Added KISS ESC sensor information for rpm and temperature to debug fields
This commit is contained in:
parent
c39ab90bc6
commit
8dbb156ea0
3 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue