mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_ESC_Telem: expose update_telem_data for scripting
This commit is contained in:
parent
0852044e9e
commit
f24ee8f800
@ -97,6 +97,9 @@ public:
|
||||
// can also be called from scripting
|
||||
void update_rpm(const uint8_t esc_index, const float new_rpm, const float error_rate);
|
||||
|
||||
// callback to update the data in the frontend, should be called by the driver when new data is available
|
||||
void update_telem_data(const uint8_t esc_index, const AP_ESC_Telem_Backend::TelemetryData& new_data, const uint16_t data_mask);
|
||||
|
||||
#if AP_SCRIPTING_ENABLED
|
||||
/*
|
||||
set RPM scale factor from script
|
||||
@ -106,9 +109,6 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
// callback to update the data in the frontend, should be called by the driver when new data is available
|
||||
void update_telem_data(const uint8_t esc_index, const AP_ESC_Telem_Backend::TelemetryData& new_data, const uint16_t data_mask);
|
||||
|
||||
// rpm data
|
||||
volatile AP_ESC_Telem_Backend::RpmData _rpm_data[ESC_TELEM_MAX_ESCS];
|
||||
// telemetry data
|
||||
|
Loading…
Reference in New Issue
Block a user