mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 16:55:22 +03:00
Merge pull request #166 from iNavFlight/pid-names
some rationalization in PID table generation and PID names no longer …
This commit is contained in:
commit
5e214f6fab
4 changed files with 88 additions and 104 deletions
19
js/fc.js
19
js/fc.js
|
@ -742,5 +742,24 @@ var FC = {
|
|||
"Attitude",
|
||||
"Cruise"
|
||||
]
|
||||
},
|
||||
getPidNames: function () {
|
||||
|
||||
if (semver.lt(CONFIG.flightControllerVersion, "1.6.0")) {
|
||||
return PID_names;
|
||||
} else {
|
||||
return [
|
||||
'Roll',
|
||||
'Pitch',
|
||||
'Yaw',
|
||||
'Position Z',
|
||||
'Position XY',
|
||||
'Velocity XY',
|
||||
'Surface',
|
||||
'Level',
|
||||
'Heading',
|
||||
'Velocity Z'
|
||||
];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue