mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 17:48:35 -04:00
APM: fixed HIL build
This commit is contained in:
parent
efc184c3ad
commit
caa16cbb54
@ -1675,9 +1675,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||||||
|
|
||||||
// rad/sec
|
// rad/sec
|
||||||
Vector3f gyros;
|
Vector3f gyros;
|
||||||
gyros.x = (float)packet.xgyro / 1000.0;
|
gyros.x = packet.rollspeed;
|
||||||
gyros.y = (float)packet.ygyro / 1000.0;
|
gyros.y = packet.pitchspeed;
|
||||||
gyros.z = (float)packet.zgyro / 1000.0;
|
gyros.z = packet.yawspeed;
|
||||||
|
|
||||||
// m/s/s
|
// m/s/s
|
||||||
Vector3f accels;
|
Vector3f accels;
|
||||||
accels.x = (float)packet.xacc / 1000.0;
|
accels.x = (float)packet.xacc / 1000.0;
|
||||||
|
@ -513,9 +513,11 @@ static const AP_Param::Info var_info[] PROGMEM = {
|
|||||||
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
GOBJECT(gcs0, "SR0_", GCS_MAVLINK),
|
||||||
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
|
GOBJECT(gcs3, "SR3_", GCS_MAVLINK),
|
||||||
|
|
||||||
|
#if HIL_MODE == HIL_MODE_DISABLED
|
||||||
// @Group: INS_
|
// @Group: INS_
|
||||||
// @Path: ../libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.cpp
|
// @Path: ../libraries/AP_InertialSensor/AP_InertialSensor_Oilpan.cpp
|
||||||
GOBJECT(ins, "INS_", AP_InertialSensor_Oilpan),
|
GOBJECT(ins, "INS_", AP_InertialSensor_Oilpan),
|
||||||
|
#endif
|
||||||
|
|
||||||
// @Group: IMU_
|
// @Group: IMU_
|
||||||
// @Path: ../libraries/AP_IMU/IMU.cpp
|
// @Path: ../libraries/AP_IMU/IMU.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user