Skip to content

Commit

Permalink
MavCmdInfoCommon.json: Add min and max values
Browse files Browse the repository at this point in the history
  • Loading branch information
nexton-winjeel committed Nov 17, 2023
1 parent cab6392 commit 61d4700
Showing 1 changed file with 72 additions and 35 deletions.
107 changes: 72 additions & 35 deletions src/MissionManager/MavCmdInfoCommon.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
"label": "Hold",
"units": "secs",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "Acceptance",
"units": "m",
"default": 0,
"decimalPlaces": 2
"decimalPlaces": 2,
"min": 0
},
"param3": {
"label": "Pass Radius",
Expand Down Expand Up @@ -93,7 +95,8 @@
"param1": {
"label": "Turns",
"default": 1,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "Leave Loiter",
Expand Down Expand Up @@ -129,7 +132,8 @@
"label": "Loiter Time",
"units": "secs",
"default": 30,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "Leave Loiter",
Expand Down Expand Up @@ -294,7 +298,8 @@
"label": "Hold",
"units": "secs",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{ "id": 83, "rawName": "MAV_CMD_NAV_ALTITUDE_WAIT", "friendlyName": "Altitude wait" },
Expand Down Expand Up @@ -364,27 +369,34 @@
"id": 93,
"rawName": "MAV_CMD_NAV_DELAY",
"friendlyName": "Delay until",
"description": "Delay unti the specified time is reached.",
"description": "Delay until the specified time is reached.",
"param1": {
"label": "Hold",
"units": "secs",
"default": 30,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": -1
},
"param2": {
"label": "Hour (utc)",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": -1,
"max": 23
},
"param3": {
"label": "Min (utc)",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": -1,
"max": 59
},
"param4": {
"label": "Sec (utc)",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": -1,
"max": 59
}
},
{
Expand All @@ -398,7 +410,8 @@
"label": "Delay",
"units": "secs",
"default": 30,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{
Expand Down Expand Up @@ -426,7 +439,8 @@
"label": "Distance",
"units": "m",
"default": 10,
"decimalPlaces": 2
"decimalPlaces": 2,
"min": 0
}
},
{
Expand Down Expand Up @@ -493,12 +507,14 @@
"param1": {
"label": "Item #",
"default": 1,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "Repeat",
"default": 10,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{
Expand All @@ -516,12 +532,14 @@
"param2": {
"label": "Speed",
"units": "m/s",
"default": 0
"default": 0,
"min": -2
},
"param3": {
"label": "Throttle",
"units": "%",
"default": 0
"default": 0,
"min": -2
},
"param4": {
"label": "Offset",
Expand Down Expand Up @@ -555,7 +573,8 @@
"param1": {
"label": "Relay #",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "Value",
Expand All @@ -570,19 +589,22 @@
"param1": {
"label": "Relay #",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "Cycles",
"default": 1,
"units": "count",
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 1
},
"param3": {
"label": "Time",
"default": 10,
"units": "secs",
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{
Expand All @@ -594,12 +616,14 @@
"param1": {
"label": "Servo",
"default": 1,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "PWM",
"default": 1500,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{
Expand All @@ -610,24 +634,28 @@
"param1": {
"label": "Servo",
"default": 1,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "PWM",
"default": 1000,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param3": {
"label": "Cycles",
"default": 1,
"units": "count",
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 1
},
"param4": {
"label": "Time",
"default": 10,
"units": "secs",
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{
Expand Down Expand Up @@ -755,12 +783,14 @@
"param2": {
"label": "Mission Index",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param3": {
"label": "ROI Index",
"default": 0,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{
Expand Down Expand Up @@ -965,13 +995,15 @@
"label": "Distance",
"default": 25,
"units": "m",
"decimalPlaces": 2
"decimalPlaces": 2,
"min": 0
},
"param2": {
"label": "Shutter",
"default": 0,
"units": "msecs",
"decimalPlaces": 0
"decimalPlaces": 0,
"min": -1
},
"param3": {
"label": "Trigger",
Expand Down Expand Up @@ -1076,7 +1108,8 @@
"label": "Timeout",
"default": 0,
"units": "secs",
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param2": {
"label": "Min Alt",
Expand All @@ -1094,7 +1127,8 @@
"label": "H Limit",
"default": 25,
"units": "m",
"decimalPlaces": 2
"decimalPlaces": 2,
"min": 0
}
},
{ "id": 241, "rawName": "MAV_CMD_PREFLIGHT_CALIBRATION", "friendlyName": "Calibration" },
Expand Down Expand Up @@ -1135,12 +1169,14 @@
"label": "Interval",
"default": 0,
"units": "secs",
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
},
"param3": {
"label": "Photo count",
"default": 1,
"decimalPlaces": 0
"decimalPlaces": 0,
"min": 0
}
},
{
Expand All @@ -1162,7 +1198,8 @@
"label": "Status Frequency",
"default": 0.2,
"units": "Hz",
"decimalPlaces": 2
"decimalPlaces": 2,
"min": 0
}
},
{
Expand Down

0 comments on commit 61d4700

Please sign in to comment.