command.param1=0;//Hold time. (ignored by fixed wing, time to stay at waypoint for rotary wing) min : 0 (seconds)
command.param2=0;//Acceptance radius (if the sphere with this radius is hit, the waypoint counts as reached) min 0 (m)
command.param3=0;//0 to pass through the WP, if > 0 radius to pass by WP. Positive value for clockwise orbit, negative value for counter-clockwise orbit. Allows trajectory control. (m)
command.param4=0;//Desired yaw angle at waypoint (rotary wing). NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.). (deg)
command.param1=0;//Hold time. (ignored by fixed wing, time to stay at waypoint for rotary wing) min : 0 (seconds)
command.param2=0;//Acceptance radius (if the sphere with this radius is hit, the waypoint counts as reached) min 0 (m)
command.param3=0;//0 to pass through the WP, if > 0 radius to pass by WP. Positive value for clockwise orbit, negative value for counter-clockwise orbit. Allows trajectory control. (m)
command.param4=0;//Desired yaw angle at waypoint (rotary wing). NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.). (deg)
command.param1=0;//Hold time. (ignored by fixed wing, time to stay at waypoint for rotary wing) min : 0 (seconds)
command.param2=0;//Acceptance radius (if the sphere with this radius is hit, the waypoint counts as reached) min 0 (m)
command.param3=0;//0 to pass through the WP, if > 0 radius to pass by WP. Positive value for clockwise orbit, negative value for counter-clockwise orbit. Allows trajectory control. (m)
command.param4=0;//Desired yaw angle at waypoint (rotary wing). NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.). (deg)
command.param1=245;//Minimum pitch (if airspeed sensor present), desired pitch without sensor
command.param2=1e+06;
command.param3=NAN;
command.param4=NAN;//Yaw angle (if magnetometer present), ignored without magnetometer. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.).
mavlink_msg_manual_control_pack(255,1,&message,1,xx,yy,zz,rr,1);//xx : Generally corresponds to forward(1000)-backward(-1000) movement on a joystick and the pitch of a vehicle.
//yy : Generally corresponds to left(-1000)-right(1000) movement on a joystick and the roll of a vehicle.
//zz : Generally corresponds to a separate slider movement with maximum being 1000 and minimum being -1000 on a joystick and the thrust of a vehicle.
//rr : Generally corresponds to a twisting of the joystick, with counter-clockwise being 1000 and clockwise being -1000, and the yaw of a vehicle.