Browse Source

AP_InertialSensor: examples: print temperature

master
Georgii Staroselskii 8 years ago committed by Lucas De Marchi
parent
commit
ac6f7511bd
  1. 2
      libraries/AP_InertialSensor/examples/INS_generic/INS_generic.cpp

2
libraries/AP_InertialSensor/examples/INS_generic/INS_generic.cpp

@ -161,6 +161,8 @@ static void run_test() @@ -161,6 +161,8 @@ static void run_test()
hal.console->printf(" Gyro (%c) : X:%6.2f Y:%6.2f Z:%6.2f\n",
state, (double)gyro.x, (double)gyro.y, (double)gyro.z);
auto temp = ins.get_temperature(ii);
hal.console->printf(" t:%6.2f\n", temp);
}
}

Loading…
Cancel
Save