Skip to content

Commit

Permalink
Fix Ci type conversion errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeyoung-Lim committed Aug 28, 2019
1 parent 8b7af5b commit d6a0505
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/mavlink/mavlink_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,8 @@ MavlinkReceiver::handle_message_set_position_target_global_int(mavlink_message_t
pos_sp_triplet.current.position_valid = false;

} else {
globallocalconverter_tolocal(set_position_target_global_int.lat_int / 10000000.0f,
set_position_target_global_int.lon_int / 10000000.0f, set_position_target_global_int.alt,
globallocalconverter_tolocal(set_position_target_global_int.lat_int / 1e7,
set_position_target_global_int.lon_int / 1e7, set_position_target_global_int.alt,
&pos_sp_triplet.current.x, &pos_sp_triplet.current.y, &pos_sp_triplet.current.z);
pos_sp_triplet.current.position_valid = true;
}
Expand Down Expand Up @@ -1051,7 +1051,6 @@ MavlinkReceiver::handle_message_set_position_target_global_int(mavlink_message_t
pos_sp_triplet.current.yawspeed_valid = false;
}

//XXX handle global pos setpoints (different MAV frames)
_pos_sp_triplet_pub.publish(pos_sp_triplet);
}
}
Expand Down

0 comments on commit d6a0505

Please sign in to comment.