mirror of https://github.com/ArduPilot/ardupilot
hil sensor cleanup
This commit is contained in:
parent
b02c3608ef
commit
6987e6c4b2
|
@ -1401,8 +1401,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||||
// TODO: check scaling for temp/absPress
|
// TODO: check scaling for temp/absPress
|
||||||
float temp = 70;
|
float temp = 70;
|
||||||
float absPress = 1;
|
float absPress = 1;
|
||||||
Serial.printf_P(PSTR("accel: %d %d %d\n"), packet.xacc, packet.yacc, packet.zacc);
|
//Serial.printf_P(PSTR("accel: %d %d %d\n"), packet.xacc, packet.yacc, packet.zacc);
|
||||||
Serial.printf_P(PSTR("gyro: %d %d %d\n"), packet.xgyro, packet.ygyro, packet.zgyro);
|
//Serial.printf_P(PSTR("gyro: %d %d %d\n"), packet.xgyro, packet.ygyro, packet.zgyro);
|
||||||
|
|
||||||
// rad/sec
|
// rad/sec
|
||||||
Vector3f gyros;
|
Vector3f gyros;
|
||||||
|
@ -1432,7 +1432,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||||
// set pressure hil sensor
|
// set pressure hil sensor
|
||||||
// TODO: check scaling
|
// TODO: check scaling
|
||||||
float temp = 70;
|
float temp = 70;
|
||||||
barometer.setHIL(temp,packet.press_diff1);
|
barometer.setHIL(temp,packet.press_diff1 + 101325);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif // HIL_MODE
|
#endif // HIL_MODE
|
||||||
|
|
|
@ -14,6 +14,9 @@ nogps:
|
||||||
hil:
|
hil:
|
||||||
make -f $(DESKTOP)/Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED"
|
make -f $(DESKTOP)/Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED"
|
||||||
|
|
||||||
|
hilsen:
|
||||||
|
make -f $(DESKTOP)/Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_SENSORS -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED"
|
||||||
|
|
||||||
hilnocli:
|
hilnocli:
|
||||||
make -f $(DESKTOP)/Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED"
|
make -f $(DESKTOP)/Makefile.desktop EXTRAFLAGS="-DHIL_MODE=HIL_MODE_ATTITUDE -DCLI_ENABLED=DISABLED -DLOGGING_ENABLED=DISABLED"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue