50 #include "mavlink_waypoint_handler.h"
51 #include "stabilisation.h"
52 #include "quaternions.h"
53 #include "mavlink_waypoint_handler.h"
54 #include "position_estimation.h"
56 #include "mavlink_communication.h"
59 #include "pid_controller.h"
156 task_return_t navigation_update(
navigation_t* navigation);
162 #endif // NAVIGATION_H_
bool critical_next_state
Flag to change critical state in its dedicated state machine.
Definition: navigation.h:91
bool stop_nav_there
Flag to stop the navigation and fly to the stopping waypoint.
Definition: navigation.h:96
uint32_t last_update
The time of the last navigation update in ms.
Definition: navigation.h:76
float dist2vel_gain
The gain linking the distance to the goal to the actual speed.
Definition: navigation.h:68
The configuration structure of the remote.
Definition: remote.h:150
bool auto_landing_next_state
Flag to change critical state in its dedicated state machine.
Definition: navigation.h:93
mav_mode_t mode
The mode of the MAV to have a memory of its evolution.
Definition: navigation.h:83
float alt_lpf
The low-pass filtered altitude for auto-landing.
Definition: navigation.h:116
float max_climb_rate
Max climb rate in m/s.
Definition: navigation.h:72
float soft_zone_size
Soft zone of the velocity controller.
Definition: navigation.h:114
The navigation structure.
Definition: navigation.h:66
uint8_t loop_count
A counter for sending MAVLink messages at a lower rate than the function.
Definition: navigation.h:81
float max_climb_rate
Max climb rate in m/s.
Definition: navigation.h:112
mavlink_waypoint_handler_t * waypoint_handler
The pointer to the waypoint handler structure.
Definition: navigation.h:101
auto_landing_behavior_t auto_landing_behavior
The autolanding behavior enum.
Definition: navigation.h:89
float dist2vel_gain
The gain linking the distance to the goal to the actual speed.
Definition: navigation.h:110
const position_estimation_t * position_estimation
The pointer to the position estimation structure in central_data.
Definition: navigation.h:102
control_command_t * controls_nav
The pointer to the navigation control structure.
Definition: navigation.h:98
bool auto_takeoff
The flag to start and end the auto takeoff procedure.
Definition: navigation.h:85
pid_controller_t wpt_nav_controller
waypoint navigation controller
Definition: navigation.h:70
float LPF_gain
The value of the low-pass filter gain.
Definition: navigation.h:79
float soft_zone_size
Soft zone of the velocity controller.
Definition: navigation.h:73
PID controller.
Definition: pid_controller.h:95
The control command typedef.
Definition: stabilisation.h:77
state_t * state
The pointer to the state structure in central_data.
Definition: navigation.h:103
Definition: navigation.h:108
critical_behavior_enum critical_behavior
The critical behavior enum.
Definition: navigation.h:88
pid_controller_t wpt_nav_controller
waypoint navigation controller
Definition: navigation.h:120
float dt
The time interval between two navigation updates.
Definition: navigation.h:75
float LPF_gain
The value of the low-pass filter gain.
Definition: navigation.h:117
float alt_lpf
The low-pass filtered altitude for auto-landing.
Definition: navigation.h:78
remote_t * remote
The pointer to the remote structure.
Definition: navigation.h:105
The state structure.
Definition: state.h:79
Unit quaternion.
Definition: quaternions.h:62
bool auto_landing
The flag to start and end the auto landing procedure.
Definition: navigation.h:86
const control_command_t * control_joystick
The pointer to the joystick control structure.
Definition: navigation.h:99
const quat_t * qe
The pointer to the attitude quaternion structure.
Definition: navigation.h:100
Definition: mavlink_waypoint_handler.h:83
pid_controller_t hovering_controller
hovering controller
Definition: navigation.h:119
const mavlink_stream_t * mavlink_stream
The pointer to the MAVLink stream structure.
Definition: navigation.h:104
Definition: mav_modes.h:147
Main MAVLink Communication structure.
Definition: mavlink_communication.h:95
Local coordinates structure.
Definition: coord_conventions.h:73
bool stop_nav
Flag to start/stop the navigation from a button in case of problems.
Definition: navigation.h:95
Main structure for the MAVLink stream module.
Definition: mavlink_stream.h:87
The position estimator structure.
Definition: position_estimation.h:79
float cruise_speed
The cruise speed in m/s.
Definition: navigation.h:111
pid_controller_t hovering_controller
hovering controller
Definition: navigation.h:69
float cruise_speed
The cruise speed in m/s.
Definition: navigation.h:71