mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
AP_Hott_Telem: convert to new get_rpm() API
This commit is contained in:
parent
429c21b887
commit
0f83da7e16
@ -147,8 +147,9 @@ void AP_Hott_Telem::send_EAM(void)
|
|||||||
msg.climbrate3s = 120 + vel.z * -3;
|
msg.climbrate3s = 120 + vel.z * -3;
|
||||||
|
|
||||||
const AP_RPM *rpm = AP::rpm();
|
const AP_RPM *rpm = AP::rpm();
|
||||||
if (rpm && rpm->enabled(0)) {
|
float rpm_value;
|
||||||
msg.rpm = rpm->get_rpm(0) / 10;
|
if (rpm && rpm->get_rpm(0, rpm_value)) {
|
||||||
|
msg.rpm = rpm_value * 0.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
AP_Stats *stats = AP::stats();
|
AP_Stats *stats = AP::stats();
|
||||||
|
Loading…
Reference in New Issue
Block a user