mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_Baro: avoid i2c errors with ICP101XX
this sensor doesn't like reading at higher than expected rate
This commit is contained in:
parent
04e69d738d
commit
15f3c7ad11
@ -109,7 +109,7 @@ bool AP_Baro_ICP101XX::init()
|
||||
|
||||
dev->get_semaphore()->give();
|
||||
|
||||
dev->register_periodic_callback(measure_interval/2, FUNCTOR_BIND_MEMBER(&AP_Baro_ICP101XX::timer, void));
|
||||
dev->register_periodic_callback(measure_interval, FUNCTOR_BIND_MEMBER(&AP_Baro_ICP101XX::timer, void));
|
||||
|
||||
return true;
|
||||
|
||||
@ -312,4 +312,4 @@ void AP_Baro_ICP101XX::update()
|
||||
}
|
||||
}
|
||||
|
||||
#endif // AP_BARO_ICP101XX_ENABLED
|
||||
#endif // AP_BARO_ICP101XX_ENABLED
|
||||
|
Loading…
Reference in New Issue
Block a user