Skip to content

Commit

Permalink
AP_UAVCAN: change isnanf for isnan
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and magicrub committed Feb 27, 2023
1 parent 8d962f9 commit f84433e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_UAVCAN/AP_UAVCAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,9 +1054,9 @@ void AP_UAVCAN::handle_ESC_status(AP_UAVCAN* ap_uavcan, uint8_t node_id, const E

ap_uavcan->update_rpm(esc_index, cb.msg->rpm, cb.msg->error_count);
ap_uavcan->update_telem_data(esc_index, t,
(isnanf(cb.msg->current) ? 0 : AP_ESC_Telem_Backend::TelemetryType::CURRENT)
| (isnanf(cb.msg->voltage) ? 0 : AP_ESC_Telem_Backend::TelemetryType::VOLTAGE)
| (isnanf(cb.msg->temperature) ? 0 : AP_ESC_Telem_Backend::TelemetryType::TEMPERATURE));
(isnan(cb.msg->current) ? 0 : AP_ESC_Telem_Backend::TelemetryType::CURRENT)
| (isnan(cb.msg->voltage) ? 0 : AP_ESC_Telem_Backend::TelemetryType::VOLTAGE)
| (isnan(cb.msg->temperature) ? 0 : AP_ESC_Telem_Backend::TelemetryType::TEMPERATURE));
#endif
}

Expand Down

0 comments on commit f84433e

Please sign in to comment.