Fix the most obvious compile warnings

This commit is contained in:
Lorenz Meier 2014-07-16 09:24:50 +02:00
parent 3ca15ab157
commit 63c6e31ba7
3 changed files with 20 additions and 8 deletions

View File

@ -222,5 +222,11 @@ private:
* Publish a new position setpoint triplet for position controllers * Publish a new position setpoint triplet for position controllers
*/ */
void publish_position_setpoint_triplet(); void publish_position_setpoint_triplet();
/* this class has ptr data members, so it should not be copied,
* consequently the copy constructors are private.
*/
Navigator(const Navigator&);
Navigator operator=(const Navigator&);
}; };
#endif #endif

View File

@ -106,16 +106,16 @@ Navigator::Navigator() :
_onboard_mission_sub(-1), _onboard_mission_sub(-1),
_offboard_mission_sub(-1), _offboard_mission_sub(-1),
_pos_sp_triplet_pub(-1), _pos_sp_triplet_pub(-1),
_vstatus({}), _vstatus{},
_control_mode({}), _control_mode{},
_global_pos({}), _global_pos{},
_home_pos({}), _home_pos{},
_mission_item({}), _mission_item{},
_nav_caps({}), _nav_caps{},
_pos_sp_triplet({}), _pos_sp_triplet{},
_mission_item_valid(false), _mission_item_valid(false),
_loop_perf(perf_alloc(PC_ELAPSED, "navigator")), _loop_perf(perf_alloc(PC_ELAPSED, "navigator")),
_geofence({}), _geofence{},
_geofence_violation_warning_sent(false), _geofence_violation_warning_sent(false),
_fence_valid(false), _fence_valid(false),
_inside_fence(true), _inside_fence(true),

View File

@ -88,6 +88,12 @@ protected:
private: private:
bool _first_run; bool _first_run;
/* this class has ptr data members, so it should not be copied,
* consequently the copy constructors are private.
*/
NavigatorMode(const NavigatorMode&);
NavigatorMode operator=(const NavigatorMode&);
}; };
#endif #endif