mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 18:18:49 -04:00
renamed set_cmd function
This commit is contained in:
parent
aab512636e
commit
10a24f22fa
@ -970,38 +970,38 @@ static int8_t
|
|||||||
|
|
||||||
// clear home
|
// clear home
|
||||||
{Location t = {0, 0, 0, 0, 0, 0};
|
{Location t = {0, 0, 0, 0, 0, 0};
|
||||||
set_command_with_index(t,0);}
|
set_cmd_with_index(t,0);}
|
||||||
|
|
||||||
// CMD opt pitch alt/cm
|
// CMD opt pitch alt/cm
|
||||||
{Location t = {MAV_CMD_NAV_TAKEOFF, WP_OPTION_RELATIVE, 0, 100, 0, 0};
|
{Location t = {MAV_CMD_NAV_TAKEOFF, WP_OPTION_RELATIVE, 0, 100, 0, 0};
|
||||||
set_command_with_index(t,1);}
|
set_cmd_with_index(t,1);}
|
||||||
|
|
||||||
if (!strcmp_P(argv[1].str, PSTR("wp"))) {
|
if (!strcmp_P(argv[1].str, PSTR("wp"))) {
|
||||||
|
|
||||||
// CMD opt
|
// CMD opt
|
||||||
{Location t = {MAV_CMD_NAV_WAYPOINT, WP_OPTION_RELATIVE, 15, 0, 0, 0};
|
{Location t = {MAV_CMD_NAV_WAYPOINT, WP_OPTION_RELATIVE, 15, 0, 0, 0};
|
||||||
set_command_with_index(t,2);}
|
set_cmd_with_index(t,2);}
|
||||||
// CMD opt
|
// CMD opt
|
||||||
{Location t = {MAV_CMD_NAV_RETURN_TO_LAUNCH, WP_OPTION_YAW, 0, 0, 0, 0};
|
{Location t = {MAV_CMD_NAV_RETURN_TO_LAUNCH, WP_OPTION_YAW, 0, 0, 0, 0};
|
||||||
set_command_with_index(t,3);}
|
set_cmd_with_index(t,3);}
|
||||||
|
|
||||||
// CMD opt
|
// CMD opt
|
||||||
{Location t = {MAV_CMD_NAV_LAND, 0, 0, 0, 0, 0};
|
{Location t = {MAV_CMD_NAV_LAND, 0, 0, 0, 0, 0};
|
||||||
set_command_with_index(t,4);}
|
set_cmd_with_index(t,4);}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//2250 = 25 meteres
|
//2250 = 25 meteres
|
||||||
// CMD opt p1 //alt //NS //WE
|
// CMD opt p1 //alt //NS //WE
|
||||||
{Location t = {MAV_CMD_NAV_LOITER_TIME, 0, 10, 0, 0, 0}; // 19
|
{Location t = {MAV_CMD_NAV_LOITER_TIME, 0, 10, 0, 0, 0}; // 19
|
||||||
set_command_with_index(t,2);}
|
set_cmd_with_index(t,2);}
|
||||||
|
|
||||||
// CMD opt dir angle/deg deg/s relative
|
// CMD opt dir angle/deg deg/s relative
|
||||||
{Location t = {MAV_CMD_CONDITION_YAW, 0, 1, 360, 60, 1};
|
{Location t = {MAV_CMD_CONDITION_YAW, 0, 1, 360, 60, 1};
|
||||||
set_command_with_index(t,3);}
|
set_cmd_with_index(t,3);}
|
||||||
|
|
||||||
// CMD opt
|
// CMD opt
|
||||||
{Location t = {MAV_CMD_NAV_LAND, 0, 0, 0, 0, 0};
|
{Location t = {MAV_CMD_NAV_LAND, 0, 0, 0, 0, 0};
|
||||||
set_command_with_index(t,4);}
|
set_cmd_with_index(t,4);}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user