示例#1
0
void
AP_InertialSensor::init_accel()
{
    _init_accel();

    // save calibration
    _save_parameters();
}
void
AP_InertialSensor::init_accel(void (*flash_leds_cb)(bool on))
{
    _init_accel(flash_leds_cb);

    // save calibration
    _save_parameters();
}
示例#3
0
文件: AP_IMU_INS.cpp 项目: cuav/MAAT
void
AP_IMU_INS::init_accel(void (*delay_cb)(unsigned long t), void (*flash_leds_cb)(bool on))
{
    _init_accel(delay_cb, flash_leds_cb);
    //_sensor_cal.save();
    save();
    FLASH_LEDS(false);
}
示例#4
0
void
AP_InertialSensor::init_accel(void (*delay_cb)(unsigned long t), void (*flash_leds_cb)(bool on))
{
    _init_accel(delay_cb, flash_leds_cb);

    // save calibration
    _save_parameters();
}
示例#5
0
void
AP_IMU_INS::init( Start_style style,
                  void (*delay_cb)(unsigned long t),
                  void (*flash_leds_cb)(bool on),
                  AP_PeriodicProcess * scheduler,
                  unsigned int lpf_filt_freq_hz,
                  unsigned int gyro_scale,
                  unsigned int accel_scale)
{
    _product_id = _ins->init(scheduler, lpf_filt_freq_hz, gyro_scale, accel_scale);
    // if we are warm-starting, load the calibration data from EEPROM and go
    //
    if (WARM_START == style) {
        _sensor_cal.load();
    } else {
        // do cold-start calibration for both accel and gyro
        _init_gyro(delay_cb, flash_leds_cb);
        _init_accel(delay_cb, flash_leds_cb);

        // save calibration
        _sensor_cal.save();
    }
}
示例#6
0
void
AP_IMU_INS::init_accel(void (*delay_cb)(unsigned long t), void (*flash_leds_cb)(bool on))
{
    _init_accel(delay_cb, flash_leds_cb);
    _sensor_cal.save();
}