Skip to content

Commit

Permalink
uavcan: disable esc current report
Browse files Browse the repository at this point in the history
  • Loading branch information
haitomatic committed May 20, 2024
1 parent fe236fa commit ce517f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/uavcan/actuators/esc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ UavcanEscController::esc_status_sub_cb(const uavcan::ReceivedDataStructure<uavca
ref.timestamp = hrt_absolute_time();
ref.esc_address = msg.getSrcNodeID().get();
ref.esc_voltage = msg.voltage;
ref.esc_current = fabs(msg.current);
//ref.esc_current = fabs(msg.current);
ref.esc_current = 0.0; // currently with Myxa ESC, the reported current is not reliable
ref.esc_temperature = msg.temperature;
ref.esc_rpm = msg.rpm;
ref.esc_errorcount = msg.error_count;
Expand Down

0 comments on commit ce517f4

Please sign in to comment.