Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Ardupilot
Commits
62ac138b
Commit
62ac138b
authored
13 years ago
by
Adam M Rivera
Browse files
Options
Downloads
Patches
Plain Diff
Planner: Fixed binding issues with mode DDLs
parent
58a4d7a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tools/ArdupilotMegaPlanner/CurrentState.cs
+0
-3
0 additions, 3 deletions
Tools/ArdupilotMegaPlanner/CurrentState.cs
Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigFlightModes.cs
+2
-40
2 additions, 40 deletions
...gaPlanner/GCSViews/ConfigurationView/ConfigFlightModes.cs
with
2 additions
and
43 deletions
Tools/ArdupilotMegaPlanner/CurrentState.cs
+
0
−
3
View file @
62ac138b
...
@@ -535,9 +535,6 @@ namespace ArdupilotMega
...
@@ -535,9 +535,6 @@ namespace ArdupilotMega
case
(
byte
)(
100
+
Common
.
ac2modes
.
APPROACH
):
case
(
byte
)(
100
+
Common
.
ac2modes
.
APPROACH
):
mode
=
EnumTranslator
.
GetDisplayText
(
Common
.
ac2modes
.
APPROACH
);
mode
=
EnumTranslator
.
GetDisplayText
(
Common
.
ac2modes
.
APPROACH
);
break
;
break
;
case
(
byte
)(
100
+
Common
.
ac2modes
.
APPROACH
):
mode
=
"APPROACH"
;
break
;
case
(
byte
)(
100
+
Common
.
ac2modes
.
POSITION
):
case
(
byte
)(
100
+
Common
.
ac2modes
.
POSITION
):
mode
=
EnumTranslator
.
GetDisplayText
(
Common
.
ac2modes
.
POSITION
);
mode
=
EnumTranslator
.
GetDisplayText
(
Common
.
ac2modes
.
POSITION
);
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.
Tools/ArdupilotMegaPlanner/GCSViews/ConfigurationView/ConfigFlightModes.cs
+
2
−
40
View file @
62ac138b
...
@@ -159,38 +159,19 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
...
@@ -159,38 +159,19 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
CB_simple5
.
Visible
=
false
;
CB_simple5
.
Visible
=
false
;
CB_simple6
.
Visible
=
false
;
CB_simple6
.
Visible
=
false
;
CMB_fmode1
.
Items
.
Clear
();
var
flightModes
=
EnumTranslator
.
Translate
<
Common
.
apmmodes
>().
Select
(
x
=>
x
.
Value
).
OrderBy
(
x
=>
x
).
ToList
();
CMB_fmode2
.
Items
.
Clear
();
CMB_fmode3
.
Items
.
Clear
();
CMB_fmode4
.
Items
.
Clear
();
CMB_fmode5
.
Items
.
Clear
();
CMB_fmode6
.
Items
.
Clear
();
var
flightModes
=
EnumTranslator
.
Translate
<
Common
.
apmmodes
>();
CMB_fmode1
.
DataSource
=
flightModes
;
CMB_fmode1
.
DataSource
=
flightModes
;
CMB_fmode1
.
ValueMember
=
"Value"
;
CMB_fmode1
.
DisplayMember
=
"Value"
;
CMB_fmode2
.
DataSource
=
flightModes
;
CMB_fmode2
.
DataSource
=
flightModes
;
CMB_fmode2
.
ValueMember
=
"Value"
;
CMB_fmode2
.
DisplayMember
=
"Value"
;
CMB_fmode3
.
DataSource
=
flightModes
;
CMB_fmode3
.
DataSource
=
flightModes
;
CMB_fmode3
.
ValueMember
=
"Value"
;
CMB_fmode3
.
DisplayMember
=
"Value"
;
CMB_fmode4
.
DataSource
=
flightModes
;
CMB_fmode4
.
DataSource
=
flightModes
;
CMB_fmode4
.
ValueMember
=
"Value"
;
CMB_fmode4
.
DisplayMember
=
"Value"
;
CMB_fmode5
.
DataSource
=
flightModes
;
CMB_fmode5
.
DataSource
=
flightModes
;
CMB_fmode5
.
ValueMember
=
"Value"
;
CMB_fmode5
.
DisplayMember
=
"Value"
;
CMB_fmode6
.
DataSource
=
flightModes
;
CMB_fmode6
.
DataSource
=
flightModes
;
CMB_fmode6
.
ValueMember
=
"Value"
;
CMB_fmode6
.
DisplayMember
=
"Value"
;
try
try
{
{
...
@@ -206,38 +187,19 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
...
@@ -206,38 +187,19 @@ namespace ArdupilotMega.GCSViews.ConfigurationView
}
}
if
(
MainV2
.
cs
.
firmware
==
MainV2
.
Firmwares
.
ArduCopter2
)
// ac2
if
(
MainV2
.
cs
.
firmware
==
MainV2
.
Firmwares
.
ArduCopter2
)
// ac2
{
{
CMB_fmode1
.
Items
.
Clear
();
var
flightModes
=
EnumTranslator
.
Translate
<
Common
.
ac2modes
>().
Select
(
x
=>
x
.
Value
).
OrderBy
(
x
=>
x
).
ToList
();
CMB_fmode2
.
Items
.
Clear
();
CMB_fmode3
.
Items
.
Clear
();
CMB_fmode4
.
Items
.
Clear
();
CMB_fmode5
.
Items
.
Clear
();
CMB_fmode6
.
Items
.
Clear
();
var
flightModes
=
EnumTranslator
.
Translate
<
Common
.
apmmodes
>();
CMB_fmode1
.
DataSource
=
flightModes
;
CMB_fmode1
.
DataSource
=
flightModes
;
CMB_fmode1
.
ValueMember
=
"Value"
;
CMB_fmode1
.
DisplayMember
=
"Value"
;
CMB_fmode2
.
DataSource
=
flightModes
;
CMB_fmode2
.
DataSource
=
flightModes
;
CMB_fmode2
.
ValueMember
=
"Value"
;
CMB_fmode2
.
DisplayMember
=
"Value"
;
CMB_fmode3
.
DataSource
=
flightModes
;
CMB_fmode3
.
DataSource
=
flightModes
;
CMB_fmode3
.
ValueMember
=
"Value"
;
CMB_fmode3
.
DisplayMember
=
"Value"
;
CMB_fmode4
.
DataSource
=
flightModes
;
CMB_fmode4
.
DataSource
=
flightModes
;
CMB_fmode4
.
ValueMember
=
"Value"
;
CMB_fmode4
.
DisplayMember
=
"Value"
;
CMB_fmode5
.
DataSource
=
flightModes
;
CMB_fmode5
.
DataSource
=
flightModes
;
CMB_fmode5
.
ValueMember
=
"Value"
;
CMB_fmode5
.
DisplayMember
=
"Value"
;
CMB_fmode6
.
DataSource
=
flightModes
;
CMB_fmode6
.
DataSource
=
flightModes
;
CMB_fmode6
.
ValueMember
=
"Value"
;
CMB_fmode6
.
DisplayMember
=
"Value"
;
try
try
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment