Browse Source

AP_InertialSensor: fixed another example build

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
4d2bfe1078
  1. 5
      libraries/AP_InertialSensor/examples/OilPan/OilPan.pde

5
libraries/AP_InertialSensor/examples/OilPan/OilPan.pde

@ -36,8 +36,7 @@ void setup(void)
#endif #endif
ins.init(AP_InertialSensor::COLD_START, ins.init(AP_InertialSensor::COLD_START,
AP_InertialSensor::RATE_50HZ, AP_InertialSensor::RATE_50HZ);
NULL);
// display initial values // display initial values
display_offsets_and_scaling(); display_offsets_and_scaling();
@ -101,7 +100,7 @@ void run_calibration()
#if !defined( __AVR_ATmega1280__ ) #if !defined( __AVR_ATmega1280__ )
AP_InertialSensor_UserInteractStream interact(hal.console); AP_InertialSensor_UserInteractStream interact(hal.console);
ins.calibrate_accel(NULL, &interact, roll_trim, pitch_trim); ins.calibrate_accel(&interact, roll_trim, pitch_trim);
#else #else
hal.console->println_P(PSTR("calibrate_accel not available on 1280")); hal.console->println_P(PSTR("calibrate_accel not available on 1280"));
#endif #endif

Loading…
Cancel
Save