Skip to content

Commit

Permalink
AP_UAVCAN: upadte_rpm pass error_count
Browse files Browse the repository at this point in the history
To be able to log error_count we need to pass it in updat_rpm. Currawong ESC stores error information in escstatus->error_count
SW-329
  • Loading branch information
loki077 authored and robertlong13 committed Sep 2, 2024
1 parent 694000a commit b13c856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_UAVCAN/AP_UAVCAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ void AP_UAVCAN::handle_ESC_status(AP_UAVCAN* ap_uavcan, uint8_t node_id, const E
.current = cb.msg->current,
};

ap_uavcan->update_rpm(esc_index, cb.msg->rpm);
ap_uavcan->update_rpm(esc_index, cb.msg->rpm, cb.msg->error_count);
ap_uavcan->update_telem_data(esc_index, t,
AP_ESC_Telem_Backend::TelemetryType::CURRENT
| AP_ESC_Telem_Backend::TelemetryType::VOLTAGE
Expand Down

0 comments on commit b13c856

Please sign in to comment.