AHRS: update example for new ins interface

This commit is contained in:
Andrew Tridgell 2012-11-29 22:57:30 +11:00
parent d89c213d42
commit 51080d3e9e
1 changed files with 3 additions and 1 deletions

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);