diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-12 18:43:09 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-12 18:43:09 +0200 |
commit | 0144a7dacfdb398c6133a9bf2df35facdbdfe6e3 (patch) | |
tree | d7efdbf957867099f6a0b5b6d563b71f569ecd4a /src/modules/mavlink/mavlink_mission.cpp | |
parent | ffebe45c4ce6cb248314141d91abcb74fbf9174e (diff) | |
download | px4-firmware-0144a7dacfdb398c6133a9bf2df35facdbdfe6e3.tar.gz px4-firmware-0144a7dacfdb398c6133a9bf2df35facdbdfe6e3.tar.bz2 px4-firmware-0144a7dacfdb398c6133a9bf2df35facdbdfe6e3.zip |
mavlink: Optimize to native types where possible, move things to optimize alignment
Diffstat (limited to 'src/modules/mavlink/mavlink_mission.cpp')
-rw-r--r-- | src/modules/mavlink/mavlink_mission.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/mavlink/mavlink_mission.cpp b/src/modules/mavlink/mavlink_mission.cpp index a62d34019..068774c47 100644 --- a/src/modules/mavlink/mavlink_mission.cpp +++ b/src/modules/mavlink/mavlink_mission.cpp @@ -61,8 +61,6 @@ static const int ERROR = -1; MavlinkMissionManager::MavlinkMissionManager(Mavlink *mavlink) : _mavlink(mavlink), - _channel(mavlink->get_channel()), - _comp_id(MAV_COMP_ID_MISSIONPLANNER), _state(MAVLINK_WPM_STATE_IDLE), _time_last_recv(0), _time_last_sent(0), @@ -82,7 +80,9 @@ MavlinkMissionManager::MavlinkMissionManager(Mavlink *mavlink) : _mission_result_sub(-1), _offboard_mission_pub(-1), _slow_rate_limiter(2000000.0f / mavlink->get_rate_mult()), - _verbose(false) + _verbose(false), + _channel(mavlink->get_channel()), + _comp_id(MAV_COMP_ID_MISSIONPLANNER) { _offboard_mission_sub = orb_subscribe(ORB_ID(offboard_mission)); _mission_result_sub = orb_subscribe(ORB_ID(mission_result)); |