Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
b1fd918b
Commit
b1fd918b
authored
Jul 12, 2016
by
Don Gagne
Committed by
GitHub
Jul 12, 2016
Browse files
Merge pull request #3730 from dagar/px4_loiter_to_alt
PX4 MAV_CMD_NAV_LOITER_TO_ALT and cleanup
parents
a45f9080
b334b289
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/FirmwarePlugin/APM/MavCmdInfoFixedWing.json
View file @
b1fd918b
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"param3"
:
{
"param3"
:
{
"label"
:
"Radius:"
,
"label"
:
"Radius:"
,
"units"
:
"m"
,
"units"
:
"m"
,
"default"
:
10
0
,
"default"
:
5
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param7"
:
{
"param7"
:
{
...
@@ -59,9 +59,16 @@
...
@@ -59,9 +59,16 @@
"param3"
:
{
"param3"
:
{
"label"
:
"Radius:"
,
"label"
:
"Radius:"
,
"units"
:
"m"
,
"units"
:
"m"
,
"default"
:
10
0
,
"default"
:
5
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param4"
:
{
"label"
:
"Next waypoint start:"
,
"enumStrings"
:
"Center,On Loiter"
,
"enumValues"
:
"0,1"
,
"default"
:
1
,
"decimalPlaces"
:
0
},
"param7"
:
{
"param7"
:
{
"label"
:
"Altitude:"
,
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"units"
:
"m"
,
...
@@ -86,9 +93,16 @@
...
@@ -86,9 +93,16 @@
"param3"
:
{
"param3"
:
{
"label"
:
"Radius:"
,
"label"
:
"Radius:"
,
"units"
:
"m"
,
"units"
:
"m"
,
"default"
:
10
0
,
"default"
:
5
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param4"
:
{
"label"
:
"Next waypoint start:"
,
"enumStrings"
:
"Center,On Loiter"
,
"enumValues"
:
"0,1"
,
"default"
:
1
,
"decimalPlaces"
:
0
},
"param7"
:
{
"param7"
:
{
"label"
:
"Altitude:"
,
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"units"
:
"m"
,
...
@@ -134,7 +148,7 @@
...
@@ -134,7 +148,7 @@
"param1"
:
{
"param1"
:
{
"label"
:
"Pitch:"
,
"label"
:
"Pitch:"
,
"units"
:
"degrees"
,
"units"
:
"degrees"
,
"default"
:
0
,
"default"
:
1
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param4"
:
{
"param4"
:
{
...
@@ -150,6 +164,41 @@
...
@@ -150,6 +164,41 @@
"decimalPlaces"
:
0
"decimalPlaces"
:
0
}
}
},
},
{
"id"
:
31
,
"rawName"
:
"MAV_CMD_NAV_LOITER_TO_ALT"
,
"friendlyName"
:
"Loiter (altitude)"
,
"description"
:
"Travel to a position and Loiter around the specified radius until the given altitude."
,
"specifiesCoordinate"
:
true
,
"friendlyEdit"
:
true
,
"category"
:
"Loiter"
,
"param1"
:
{
"label"
:
"Heading wait:"
,
"enumStrings"
:
"False,True"
,
"enumValues"
:
"0,1"
,
"default"
:
1
,
"decimalPlaces"
:
0
},
"param2"
:
{
"label"
:
"Radius:"
,
"units"
:
"m"
,
"default"
:
50
,
"decimalPlaces"
:
0
},
"param4"
:
{
"label"
:
"Next waypoint start:"
,
"enumStrings"
:
"Center,On Loiter"
,
"enumValues"
:
"0,1"
,
"default"
:
1
,
"decimalPlaces"
:
0
},
"param7"
:
{
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"default"
:
50
,
"decimalPlaces"
:
0
}
},
{
{
"id"
:
206
,
"id"
:
206
,
"rawName"
:
"MAV_CMD_DO_SET_CAM_TRIGG_DIST"
,
"rawName"
:
"MAV_CMD_DO_SET_CAM_TRIGG_DIST"
,
...
...
src/FirmwarePlugin/PX4/MavCmdInfoFixedWing.json
View file @
b1fd918b
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"param3"
:
{
"param3"
:
{
"label"
:
"Radius:"
,
"label"
:
"Radius:"
,
"units"
:
"m"
,
"units"
:
"m"
,
"default"
:
10
0
,
"default"
:
5
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param7"
:
{
"param7"
:
{
...
@@ -59,9 +59,16 @@
...
@@ -59,9 +59,16 @@
"param3"
:
{
"param3"
:
{
"label"
:
"Radius:"
,
"label"
:
"Radius:"
,
"units"
:
"m"
,
"units"
:
"m"
,
"default"
:
10
0
,
"default"
:
5
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param4"
:
{
"label"
:
"Next waypoint start:"
,
"enumStrings"
:
"Center,On Loiter"
,
"enumValues"
:
"0,1"
,
"default"
:
1
,
"decimalPlaces"
:
0
},
"param7"
:
{
"param7"
:
{
"label"
:
"Altitude:"
,
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"units"
:
"m"
,
...
@@ -86,9 +93,16 @@
...
@@ -86,9 +93,16 @@
"param3"
:
{
"param3"
:
{
"label"
:
"Radius:"
,
"label"
:
"Radius:"
,
"units"
:
"m"
,
"units"
:
"m"
,
"default"
:
10
0
,
"default"
:
5
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param4"
:
{
"label"
:
"Next waypoint start:"
,
"enumStrings"
:
"Center,On Loiter"
,
"enumValues"
:
"0,1"
,
"default"
:
1
,
"decimalPlaces"
:
0
},
"param7"
:
{
"param7"
:
{
"label"
:
"Altitude:"
,
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"units"
:
"m"
,
...
@@ -104,18 +118,6 @@
...
@@ -104,18 +118,6 @@
"specifiesCoordinate"
:
true
,
"specifiesCoordinate"
:
true
,
"friendlyEdit"
:
true
,
"friendlyEdit"
:
true
,
"category"
:
"Basic"
,
"category"
:
"Basic"
,
"param1"
:
{
"label"
:
"Abort Alt:"
,
"units"
:
"m"
,
"default"
:
25
,
"decimalPlaces"
:
0
},
"param4"
:
{
"label"
:
"Heading:"
,
"units"
:
"radians"
,
"default"
:
0
,
"decimalPlaces"
:
2
},
"param7"
:
{
"param7"
:
{
"label"
:
"Altitude:"
,
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"units"
:
"m"
,
...
@@ -134,19 +136,48 @@
...
@@ -134,19 +136,48 @@
"param1"
:
{
"param1"
:
{
"label"
:
"Pitch:"
,
"label"
:
"Pitch:"
,
"units"
:
"degrees"
,
"units"
:
"degrees"
,
"default"
:
0
,
"default"
:
10
,
"decimalPlaces"
:
0
},
"param7"
:
{
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"default"
:
25
,
"decimalPlaces"
:
0
}
},
{
"id"
:
31
,
"rawName"
:
"MAV_CMD_NAV_LOITER_TO_ALT"
,
"friendlyName"
:
"Loiter (altitude)"
,
"description"
:
"Travel to a position and Loiter around the specified radius until the given altitude."
,
"specifiesCoordinate"
:
true
,
"friendlyEdit"
:
true
,
"category"
:
"Loiter"
,
"param1"
:
{
"label"
:
"Heading wait:"
,
"enumStrings"
:
"False,True"
,
"enumValues"
:
"0,1"
,
"default"
:
1
,
"decimalPlaces"
:
0
},
"param2"
:
{
"label"
:
"Radius:"
,
"units"
:
"m"
,
"default"
:
50
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
},
},
"param4"
:
{
"param4"
:
{
"label"
:
"Heading:"
,
"label"
:
"Next waypoint start:"
,
"units"
:
"radians"
,
"enumStrings"
:
"Center,On Loiter"
,
"default"
:
0
,
"enumValues"
:
"0,1"
,
"decimalPlaces"
:
1
"default"
:
1
,
"decimalPlaces"
:
0
},
},
"param7"
:
{
"param7"
:
{
"label"
:
"Altitude:"
,
"label"
:
"Altitude:"
,
"units"
:
"m"
,
"units"
:
"m"
,
"default"
:
2
5
,
"default"
:
5
0
,
"decimalPlaces"
:
0
"decimalPlaces"
:
0
}
}
},
},
...
...
src/FirmwarePlugin/PX4/PX4FirmwarePlugin.cc
View file @
b1fd918b
...
@@ -205,7 +205,7 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
...
@@ -205,7 +205,7 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
QList
<
MAV_CMD
>
list
;
QList
<
MAV_CMD
>
list
;
list
<<
MAV_CMD_NAV_WAYPOINT
list
<<
MAV_CMD_NAV_WAYPOINT
<<
MAV_CMD_NAV_LOITER_UNLIM
<<
MAV_CMD_NAV_LOITER_TIME
<<
MAV_CMD_NAV_LOITER_UNLIM
<<
MAV_CMD_NAV_LOITER_TIME
<<
MAV_CMD_NAV_LOITER_TO_ALT
<<
MAV_CMD_NAV_LAND
<<
MAV_CMD_NAV_TAKEOFF
<<
MAV_CMD_NAV_LAND
<<
MAV_CMD_NAV_TAKEOFF
<<
MAV_CMD_DO_JUMP
<<
MAV_CMD_DO_JUMP
<<
MAV_CMD_DO_VTOL_TRANSITION
<<
MAV_CMD_NAV_VTOL_TAKEOFF
<<
MAV_CMD_NAV_VTOL_LAND
<<
MAV_CMD_DO_VTOL_TRANSITION
<<
MAV_CMD_NAV_VTOL_TAKEOFF
<<
MAV_CMD_NAV_VTOL_LAND
...
@@ -213,10 +213,9 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
...
@@ -213,10 +213,9 @@ QList<MAV_CMD> PX4FirmwarePlugin::supportedMissionCommands(void)
<<
MAV_CMD_DO_SET_CAM_TRIGG_DIST
<<
MAV_CMD_DO_SET_CAM_TRIGG_DIST
<<
MAV_CMD_DO_SET_SERVO
<<
MAV_CMD_DO_SET_SERVO
<<
MAV_CMD_DO_CHANGE_SPEED
<<
MAV_CMD_DO_CHANGE_SPEED
<<
MAV_CMD_DO_
SET_ROI
<<
MAV_CMD_DO_
LAND_START
<<
MAV_CMD_DO_MOUNT_CONFIGURE
<<
MAV_CMD_DO_MOUNT_CONFIGURE
<<
MAV_CMD_DO_MOUNT_CONTROL
<<
MAV_CMD_DO_MOUNT_CONTROL
;
<<
MAV_CMD_NAV_PATHPLANNING
;
return
list
;
return
list
;
}
}
...
...
src/MissionManager/MavCmdInfoCommon.json
View file @
b1fd918b
...
@@ -543,10 +543,8 @@
...
@@ -543,10 +543,8 @@
"rawName"
:
"MAV_CMD_DO_LAND_START"
,
"rawName"
:
"MAV_CMD_DO_LAND_START"
,
"friendlyName"
:
"Land start"
,
"friendlyName"
:
"Land start"
,
"description"
:
"Marker to indicate start of landing sequence."
,
"description"
:
"Marker to indicate start of landing sequence."
,
"specifiesCoordinate"
:
true
,
"standaloneCoordinate"
:
true
,
"friendlyEdit"
:
true
,
"friendlyEdit"
:
true
,
"category"
:
"
Basic
"
"category"
:
"
Flight control
"
},
},
{
"id"
:
190
,
"rawName"
:
"MAV_CMD_DO_RALLY_LAND"
,
"friendlyName"
:
"Rally land"
},
{
"id"
:
190
,
"rawName"
:
"MAV_CMD_DO_RALLY_LAND"
,
"friendlyName"
:
"Rally land"
},
{
"id"
:
191
,
"rawName"
:
"MAV_CMD_DO_GO_AROUND"
,
"friendlyName"
:
"Go around"
},
{
"id"
:
191
,
"rawName"
:
"MAV_CMD_DO_GO_AROUND"
,
"friendlyName"
:
"Go around"
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment