mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
Copter: added RPM dataflash logging
This commit is contained in:
parent
ab7e400a89
commit
80ad9aa605
@ -75,6 +75,11 @@ int16_t Copter::read_sonar(void)
|
|||||||
void Copter::rpm_update(void)
|
void Copter::rpm_update(void)
|
||||||
{
|
{
|
||||||
rpm_sensor.update();
|
rpm_sensor.update();
|
||||||
|
if (rpm_sensor.healthy(0) || rpm_sensor.healthy(1)) {
|
||||||
|
if (should_log(MASK_LOG_RCIN)) {
|
||||||
|
DataFlash.Log_Write_RPM(rpm_sensor);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialise compass
|
// initialise compass
|
||||||
|
Loading…
Reference in New Issue
Block a user