Browse Source

Fix test_ins

Fix output format of test_ins and fix the number of parameters passed
to printf
master
tstellanova 12 years ago committed by rmackay9
parent
commit
459c47fa46
  1. 3
      ArduCopter/test.pde

3
ArduCopter/test.pde

@ -301,6 +301,7 @@ test_ins(uint8_t argc, const Menu::arg *argv) @@ -301,6 +301,7 @@ test_ins(uint8_t argc, const Menu::arg *argv)
ins.init(AP_InertialSensor::COLD_START,
ins_sample_rate,
flash_leds);
cliSerial->printf_P(PSTR("...done\n"));
delay(50);
@ -311,7 +312,7 @@ test_ins(uint8_t argc, const Menu::arg *argv) @@ -311,7 +312,7 @@ test_ins(uint8_t argc, const Menu::arg *argv)
float test = accel.length() / GRAVITY_MSS;
cliSerial->printf_P(PSTR("a %7.4f %7.4f %7.4f g %7.4f %7.4f %7.4f t %74f | %7.4f\n"),
cliSerial->printf_P(PSTR("a %7.4f %7.4f %7.4f g %7.4f %7.4f %7.4f t %7.4f \n"),
accel.x, accel.y, accel.z,
gyro.x, gyro.y, gyro.z,
test);

Loading…
Cancel
Save