mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 17:10:35 +08:00
Gyrosim: Fixed constant looping
Gyrosim would call measure continuously because the write_checked_reg was failing. There is no need to check faked reg writes in the simulator so that code was removed. The delay that was added to the simulator to pace the gyrosim reads was also removed now that the source of the problem was determined. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -63,9 +63,6 @@ Simulator *Simulator::getInstance()
|
||||
|
||||
bool Simulator::getMPUReport(uint8_t *buf, int len)
|
||||
{
|
||||
// Reads are paced from reading gyrosim and if
|
||||
// we don't delay here we read too fast
|
||||
usleep(50000);
|
||||
return _mpu.copyData(buf, len);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user