mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-01 03:04:04 -04:00
AP_Rangefinder: request measurement for timer routine to collect
the timer routing attempts to read a reading off the bus straihgt-up, but after initialisation the sensor will not be attempting to provide one, so this will always fail. Request a sample as the last thing we do in the init routine
This commit is contained in:
parent
e17c3127b1
commit
cf1a1ec88b
@ -97,6 +97,9 @@ bool AP_RangeFinder_TeraRangerI2C::init(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ask for a new reading for the timer to collect:
|
||||||
|
measure();
|
||||||
|
|
||||||
dev->get_semaphore()->give();
|
dev->get_semaphore()->give();
|
||||||
|
|
||||||
dev->set_retries(1);
|
dev->set_retries(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user