|
|
|
@ -345,8 +345,9 @@ static void NOINLINE send_vfr_hud(mavlink_channel_t chan)
@@ -345,8 +345,9 @@ static void NOINLINE send_vfr_hud(mavlink_channel_t chan)
|
|
|
|
|
|
|
|
|
|
static void NOINLINE send_raw_imu1(mavlink_channel_t chan) |
|
|
|
|
{ |
|
|
|
|
Vector3f accel = ins.get_accel(); |
|
|
|
|
Vector3f gyro = ins.get_gyro(); |
|
|
|
|
const Vector3f &accel = ins.get_accel(); |
|
|
|
|
const Vector3f &gyro = ins.get_gyro(); |
|
|
|
|
const Vector3f &mag = compass.get_field(); |
|
|
|
|
|
|
|
|
|
mavlink_msg_raw_imu_send( |
|
|
|
|
chan, |
|
|
|
@ -357,16 +358,16 @@ static void NOINLINE send_raw_imu1(mavlink_channel_t chan)
@@ -357,16 +358,16 @@ static void NOINLINE send_raw_imu1(mavlink_channel_t chan)
|
|
|
|
|
gyro.x * 1000.0, |
|
|
|
|
gyro.y * 1000.0, |
|
|
|
|
gyro.z * 1000.0, |
|
|
|
|
compass.mag_x, |
|
|
|
|
compass.mag_y, |
|
|
|
|
compass.mag_z); |
|
|
|
|
mag.x, |
|
|
|
|
mag.y, |
|
|
|
|
mag.z); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void NOINLINE send_raw_imu3(mavlink_channel_t chan) |
|
|
|
|
{ |
|
|
|
|
Vector3f mag_offsets = compass.get_offsets(); |
|
|
|
|
Vector3f accel_offsets = ins.get_accel_offsets(); |
|
|
|
|
Vector3f gyro_offsets = ins.get_gyro_offsets(); |
|
|
|
|
const Vector3f &mag_offsets = compass.get_offsets(); |
|
|
|
|
const Vector3f &accel_offsets = ins.get_accel_offsets(); |
|
|
|
|
const Vector3f &gyro_offsets = ins.get_gyro_offsets(); |
|
|
|
|
|
|
|
|
|
mavlink_msg_sensor_offsets_send(chan, |
|
|
|
|
mag_offsets.x, |
|
|
|
@ -384,7 +385,7 @@ static void NOINLINE send_raw_imu3(mavlink_channel_t chan)
@@ -384,7 +385,7 @@ static void NOINLINE send_raw_imu3(mavlink_channel_t chan)
|
|
|
|
|
|
|
|
|
|
static void NOINLINE send_ahrs(mavlink_channel_t chan) |
|
|
|
|
{ |
|
|
|
|
Vector3f omega_I = ahrs.get_gyro_drift(); |
|
|
|
|
const Vector3f &omega_I = ahrs.get_gyro_drift(); |
|
|
|
|
mavlink_msg_ahrs_send( |
|
|
|
|
chan, |
|
|
|
|
omega_I.x, |
|
|
|
|