Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use X Y Z instead of 0, 1, 2 * Use default origin location in constants.hpp * Style * Use Z instead of 2 * Style * Fix include * Fix doc * Use X Y Z instead of 0, 1, 2 * Rename variables * Use origin from INS instead of config * Set origin as protected * Moved Waypoint::mavlink_stream as function input to Waypoint::send() to get rid of references in waypoint class * Removed position estimation from waypoint class * Removed unnecessary update function from waypoint class * Removed functions from mission planner, gave control of hold position to mission planner handler * Update constructor of new classes in lequad * Fixed segmentation fault bugs * removed waypoint_hold_coordinates * Fixed compiler errors from ins merge * Fixed debug printing formatting * Added debug printint on internal state change * Added takeoff notification * Changed set heading function on goal * Removed unnecessary heading * Change waypoint frame in function to the local frame, not Waypoint::frame_ * Added hold waypoint set for navigation * Fixed incorrect function parameters * Added waiting at waypoint check to nav plan init * Added waiting at waypoint sets during waypoint changes * Moved dubin state machine to navigation * Moved dubin state machine call to navigation update function * Added debug logs for dubin state change * Added set goal function in navigation * Added check for when to autocontinue * Fixed compiler errors * Moved set waiting at waypoint until the drone was moving towards the next one * Added goal waypoint set after successful takeoff * Fixed issue where goal was not being updated when setting the new waypoint * Removed unnecessary update current waypoint * Removed nav plan init * Fixed nav plan active update in mission planner update * Added dubin init when switching from manual control to navigation * Changed method that navigation::internal_state is set * Removed duplicate print * Added comments and removed dubin init * Fixed output message * Removed unnecessary else condition * Fixed debug message output * Moved all dubin changes to navigation so that the dubin structure will be reinitialized if there is a change with the goal waypoint * Fixed comment * Moved planning functions to mission planner, fixed print issues in navigating handler * Cleaned up code * Cleaned up landing code * Cleaned up navigating handler a bit * Moved mission planner classes to control folder * Moved waypoint to control folder * Critical handler uses navigation config instead of hardcoded values * Fixed segfault with mission planner constructor * Readded the reset hold waypoint on clear waypoint list * Added function comment * Removed commented out function declaration * Modified waypoint structure to include just params * Changed mission handler interface * Changed hold position handler * Renamed mission planner handler to mission handler * Modified state machine and moved navigation enum to mission planner * Fixed various mistakes. Added on ground handler * Changed landing handler * Fixed type * Added takeoff handler * Modified goal * Fixed mission handler registry * Removed declaration of unnecessary handlers * Added navigating handler * Started to get rid of nav_plan_active * Started to remove old NAV_ enum * Modified navigation comments * Made mission handlers responsible for setting Navigation::waiting_at_waypoint * Changed navigation code to check only if we are waiting at a waypoint * Removed nav plan active from if statement and replaced with waiting at waypoint * Removed setters * Fixed constructor * Added mission handler registry * Mission planner state machine no longer checks for default handlers * Added internal state control inside the mission handlers * Fixed compiler errors, contains segfault * Fixed segfault * Made the critical handler and mission planner state machine make more sense * Added checks for hold waypoint finished * Made waypoints const * Made waypoints const * Changed goal waypoints to copies instead of references * Added get waypoint with no waypoint list case * Removed unnecessary comment * Moved mission items to new folder and adds mission handler internal state function * Renamed insert mission waypoint * Added check for inputted waypoint * Changed waypoint::heading() and waypoint::radius() to return success and input the waypoint * Changed enum for on ground mav command * Added critical landing and critical navigating handlers * Changed the takeoff is_finished() function * Added require takeoff * Fixed throttle auto takeoff * Rearranged variables of onboard waypoints * Moved settings in navigation to appropriate classes * Fixed compiler errors * Removed dist2vel_gain * Removed nav soft zone size * removed Mission_handler::is_finished and replaced with Mission_handler::handle return status code * Changed handlers to be templates * Renamed handle to update * Added commands to handlers * Fixed critical handler template and lequad handler instantiation, waiting on controllers * Cascade controller: added interfaces for controller levels - Added following interfaces: + iattitude_controll + inavigation_controller + iposition_controller + irate_controller + itorque_controller + ixyposition_zvel_controller - Added base_command_t to control/control_command.h - Added local_velocity_t to util/coord_conventions.hpp * Cascade controller: added ivelocity_controller * Coord_conventions: fixed bug (missing ';') * Cascade_controller: made argument of set_xxx_command in controller interfaces (inavigation, iposition, etc. ) const * Cascade_controller: change return of set_xxx_command in interfaces to bool This allows the controllers to accept or reject a command * Cascade_controller: change return statement of set_xyposition_zvel_command from void to bool * Cascade controller: Added implementation from torque to attitude level * Cascade controller: added torque_controller for quadrotor cross configuration * Fixed compiler issues for handler templates * Moved waypoint to mission folder * Cascade Controller: changed joystick.attitude_scale_Z to avoid instability in yaw * Cascade_controller: added ivelocity_yaw_controller interface * Cascade controller: adapted velocity controller for cascade; bug fix in torque_controllers * Cascade controller: bug fix in velocity_controller_copter; added velocity_controller_copter to Cascade_controller * Cascade Controller: moved remaining servos_mixes * Cascade controller: pid_controller: added pid_controller_apply_config * Cascade controller: Controllers: changed config to const as constructor arguments; Velocity_controller_copter: added attitude default config to default config * Cascade controller: added position controller implementing iposition_ctrl, inavigation_ctrl and ixyposition_zvel_ctrl * Cascade Controller & Mission handler: fused the two * Added forgotten returns on functions * Cascade_controller: implemented set_xxx_command(...) in controller interfaces to avoid compilation warnings in mission_handlers * Revert "Cascade_controller: implemented set_xxx_command(...) in controller interfaces to avoid compilation warnings in mission_handlers" This reverts commit 646725a. * Added forgotten returns on functions Conflicts: mission/mission_handler_landing.cpp * Added ixyposition_zvel_controller interface * Mission Handler working with stabilisation copter (yaw still strange) * LEQuad: Moved init_* calls from constructor to dedicated init() function This allows to override init_* functions from child classes * LEQuad_dronedome: moved call of gps_mocap_.init() and ahrs_ekf_mocap_.init() to init() * Waypoints: added heading for MAV_CMD_NAV_PATHPLANNING and ;MAV_CMD_NAV_SPLINE_WAYPOINT * Waypoint_handler: changed callbacks to listen to messages for target_component 50 for compatibility with DroneKit * Position_controller: moved kp_yaw to config * Position_controller: bug fix for avr and stm32 * Position_controller: changed yaw to only be set when in cruise mode * Fixed two bugs * Takeoff handler: bug fix ported from dev/waypoint_handler_rewrite Changed takeoff altitude * Fixed hold position waypoint initialization * Added yaw to hold position * Added auto takeoff from ground when in hold position * Fixed disarmed setting and autotakeoff from ground * Added manual control handler * Added necessary file to rules * Added manual control to Mission_planner:state_machine() * Removed heading command from standby mode * fixed callback functions of mission planning * Added mission enum to switch case * Removed yaw control * Removed Mission_planner::is_arrived() * Removed empty cpp files * Remove forward declaration of Mission_planner * Rename boolean to is_XXX * Remove unused state member in Waypoint_handler * Add const * navigation is const ref in waypoint_handler * Remove camelCase * Add const keywords * Renamed callbacks to mavlink commands to match command name in waypoint_handler * Added home waypoint * Remove dubious piece of code and add comment * Removed mission planner from handler inputs * Changed Mission_handler::update() return to an enum * Add const keywords in Waypoint handler * Rename callback methods to match mavlink command * Added time recording for waypoints list received * On ground handler is ready to accept attitude controller * Fixed order of landing handler update function to prevent accidental auto-takeoff after rearming * Use Xxx_I for controller interfaces * fix * Removed navigation update task * Added go home callback * Removed reset hold todo on clear waypoint list * Added check in critical handler to not run when not in auto or continuous * Reduced checks in waypoint communication * Renamed confusing function name * Renamed Torque_controller* to Servos_mix Removed Servos_mix from controller stack: Rate_controller contains a Servos_mix rather than inheriting * Removed waypoint initialization * Moved config variables form navigation to mission/* * Fixed receiving 0 waypoint count case * Rate_controller + Position_controller: bug fix * added home waypoint sending (does not send on construction) * Removed waiting at waypoint * Removed navigation.start_wpt_time_ * Removed navigation from several modules * Removed navigation * Added Navigation_directto; Removed pid controller switching from position_controller * Added rate control to on ground handler * Fixed compiler errors for avr * Do not track .d files * Fix filenames in rules_common.mk * Manual_control: changed get_attitude_command * Navigation_directto: commented changing of pid out for avr32 * Joystick: changed default config for yaw scale to be adapted for get_attitude_command * add missing init * Fix merge conflicts * Fixed incorrect altitude in land callback * Moved descent to ground altitude to config * Added check if drone is below desc2gnd altitude * Fixed dronedome takeoff altitutude * Position_controller: fixed bug: setting to xyz mode on update_cascade * Made range for switch to desc2gnd a config param * simplify if statement according to julien command * clean useless extern C * Re-enable yaw alignment during navigation
- Loading branch information