/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- /* * Airspeed_Calibration.pde - airspeed example sketch */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // ArduPilot Mega Declination Helper Library #include const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER; static Airspeed_Calibration acal; void setup() { hal.console->println("Airspeed Calibration library test"); } void loop(void) { uint32_t tstart = hal.scheduler->micros(); acal.update(15, Vector3f(10,20,13)); hal.console->printf_P(PSTR("update took %u usec\n"), hal.scheduler->micros() - tstart); hal.scheduler->delay(1000); } AP_HAL_MAIN();