Browse Source

Replay: fixes for AP_Scheduler change

mission-4.1.18
Andrew Tridgell 9 years ago committed by Randy Mackay
parent
commit
26ced77ebc
  1. 18
      Tools/Replay/Replay.cpp

18
Tools/Replay/Replay.cpp

@ -633,23 +633,7 @@ void Replay::setup() @@ -633,23 +633,7 @@ void Replay::setup()
}
void Replay::set_ins_update_rate(uint16_t _update_rate) {
switch (_update_rate) {
case 50:
_vehicle.ins.init(AP_InertialSensor::RATE_50HZ);
break;
case 100:
_vehicle.ins.init(AP_InertialSensor::RATE_100HZ);
break;
case 200:
_vehicle.ins.init(AP_InertialSensor::RATE_200HZ);
break;
case 400:
_vehicle.ins.init(AP_InertialSensor::RATE_400HZ);
break;
default:
printf("Invalid update rate (%d); use 50, 100, 200 or 400\n", _update_rate);
exit(1);
}
_vehicle.ins.init(_update_rate);
}
void Replay::inhibit_gyro_cal() {

Loading…
Cancel
Save