mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Made sure airspeed tests reset the sensors to default state
This commit is contained in:
parent
ab90030a0b
commit
28fa96e2db
@ -383,6 +383,10 @@ test()
|
||||
warnx("diff pressure: %d pa", report.differential_pressure_pa);
|
||||
}
|
||||
|
||||
/* reset the sensor polling to its default rate */
|
||||
if (OK != ioctl(fd, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_DEFAULT))
|
||||
errx(1, "failed to set default rate");
|
||||
|
||||
errx(0, "PASS");
|
||||
}
|
||||
|
||||
|
||||
@ -415,6 +415,10 @@ test()
|
||||
warnx("temperature: %d C (0x%02x)", (int)report.temperature, (unsigned) report.temperature);
|
||||
}
|
||||
|
||||
/* reset the sensor polling to its default rate */
|
||||
if (OK != ioctl(fd, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_DEFAULT))
|
||||
errx(1, "failed to set default rate");
|
||||
|
||||
errx(0, "PASS");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user