mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 12:55:13 +03:00
loader and saver for NAV_POSHOLD MSP frame
This commit is contained in:
parent
8673e5b21b
commit
cdab074a4d
1 changed files with 16 additions and 0 deletions
|
@ -1918,5 +1918,21 @@ var mspHelper = (function (gui) {
|
|||
}
|
||||
};
|
||||
|
||||
self.loadNavPosholdConfig = function (callback) {
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.6.0")) {
|
||||
MSP.send_message(MSPCodes.MSP_NAV_POSHOLD, false, false, callback);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
self.saveNavPosholdConfig = function (callback) {
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.6.0")) {
|
||||
MSP.send_message(MSPCodes.MSP_SET_NAV_POSHOLD, mspHelper.crunch(MSPCodes.MSP_SET_NAV_POSHOLD), false, callback);
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
return self;
|
||||
})(GUI);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue