ESC status - supporting negative RPM

This commit is contained in:
Pavel Kirienko
2014-10-15 13:48:55 +04:00
parent ecd144b8b4
commit f9856c6228
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ void UavcanEscController::esc_status_sub_cb(const uavcan::ReceivedDataStructure<
ref.esc_current = msg.current;
ref.esc_temperature = msg.temperature;
ref.esc_setpoint = msg.power_rating_pct;
ref.esc_rpm = abs(msg.rpm);
ref.esc_rpm = msg.rpm;
ref.esc_errorcount = msg.error_count;
}
}