Professional Documents
Culture Documents
Flow Diagram (First Draft) : Rccommand (Pitch) - 5 Delay 500 Hold - Position Delay 1000 Rccommand (Yaw) 45
Flow Diagram (First Draft) : Rccommand (Pitch) - 5 Delay 500 Hold - Position Delay 1000 Rccommand (Yaw) 45
Flow Diagram (First Draft) : Rccommand (Pitch) - 5 Delay 500 Hold - Position Delay 1000 Rccommand (Yaw) 45
START
rcCommand[PITCH]= -5;
If yes delay = 500;
lidarDistance hold_position;
=< 100 delay = 1000;
rcCommand[YAW]= 45;
no
NAV_STATE_WAYPOINT_INITIALIZE,
NAV_STATE_WAYPOINT_PRE_ACTION, If yes
NAV_STATE_WAYPOINT_IN_PROGRESS, lidarDistance rcCommand[PITCH]= 15;
NAV_STATE_WAYPOINT_REACHED, => 150 delay = 500;
NAV_STATE_WAYPOINT_NEXT,
NAV_STATE_WAYPOINT_FINISHED,
NAV_STATE_WAYPOINT_RTH_LAND,
no
rcCommand[YAW]= -45;
END
If yes
rcCommand[PITCH]= 15;
lidarDistance
delay = 500;
=> 150
rcCommand[THROTTLE];