AHRS: update example for new ins interface

This commit is contained in:
Andrew Tridgell 2012-11-29 22:57:30 +11:00
parent 94f73b83c3
commit 7ef7c7f04f

View File

@ -106,7 +106,9 @@ void setup(void)
isr_registry.init();
scheduler.init(&isr_registry);
ins.init(AP_InertialSensor::COLD_START, delay, flash_leds, &scheduler);
ins.init(AP_InertialSensor::COLD_START,
AP_InertialSensor::RATE_100HZ,
delay, flash_leds, &scheduler);
ins.init_accel(delay, flash_leds);
compass.set_orientation(MAG_ORIENTATION);