Skip to content

Commit

Permalink
[airborne] get rid of some const-qual warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Nov 14, 2014
1 parent 3836df0 commit a0ecc78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sw/airborne/subsystems/ahrs/ahrs_float_cmpl.c
Expand Up @@ -391,7 +391,7 @@ void ahrs_update_mag_2d(float dt) {
// normalize measured ltp in 2D (x,y)
float_vect2_normalize(&measured_ltp_2d);

const struct FloatVect3 residual_ltp =
struct FloatVect3 residual_ltp =
{ 0,
0,
measured_ltp_2d.x * expected_ltp.y - measured_ltp_2d.y * expected_ltp.x };
Expand Down
5 changes: 3 additions & 2 deletions sw/airborne/subsystems/ins/ins_gps_passthrough.c
Expand Up @@ -68,7 +68,8 @@ static void send_ins(struct transport_tx *trans, struct link_device *dev) {
static void send_ins_z(struct transport_tx *trans, struct link_device *dev) {
static const float fake_baro_z = 0.0;
pprz_msg_send_INS_Z(trans, dev, AC_ID,
&fake_baro_z, &ins_impl.ltp_pos.z, &ins_impl.ltp_speed.z, &ins_impl.ltp_accel.z);
(float*)&fake_baro_z, &ins_impl.ltp_pos.z,
&ins_impl.ltp_speed.z, &ins_impl.ltp_accel.z);
}

static void send_ins_ref(struct transport_tx *trans, struct link_device *dev) {
Expand All @@ -77,7 +78,7 @@ static void send_ins_ref(struct transport_tx *trans, struct link_device *dev) {
pprz_msg_send_INS_REF(trans, dev, AC_ID,
&ins_impl.ltp_def.ecef.x, &ins_impl.ltp_def.ecef.y, &ins_impl.ltp_def.ecef.z,
&ins_impl.ltp_def.lla.lat, &ins_impl.ltp_def.lla.lon, &ins_impl.ltp_def.lla.alt,
&ins_impl.ltp_def.hmsl, &fake_qfe);
&ins_impl.ltp_def.hmsl, (float*)&fake_qfe);
}
}
#endif
Expand Down

0 comments on commit a0ecc78

Please sign in to comment.