Skip to content

Commit

Permalink
fix current value convert
Browse files Browse the repository at this point in the history
  • Loading branch information
Huibean committed Sep 19, 2024
1 parent 6019706 commit 5be08e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/DroneCAN/DroneCAN.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ static void send_ESCStatus(void)
// make up some synthetic status data
pkt.error_count = 0;
pkt.voltage = battery_voltage * 0.01;
pkt.current = actual_current * 0.02;
pkt.current = actual_current * 0.001;
pkt.temperature = C_TO_KELVIN(degrees_celsius);
pkt.rpm = (e_rpm * 100) / ((uint8_t)motor_poles);
pkt.power_rating_pct = 0; // how do we get this?
Expand Down

0 comments on commit 5be08e3

Please sign in to comment.