Sanity Check 3D-Neutral limits

10.3.x-maintenance
tricopterY 2016-01-10 13:25:03 +11:00
parent 48a5953db1
commit d22271ce61
1 changed files with 6 additions and 1 deletions

View File

@ -318,6 +318,11 @@ TABS.motors.initialize = function (callback) {
$('div.values li:not(:last)').text(MISC.mincommand);
if(self.feature3DEnabled && self.feature3DSupported) {
//Arbitrary sanity checks
//Note: values may need to be revisited
if(_3D.neutral3d > 1575 || _3D.neutral3d < 1425)
_3D.neutral3d = 1500;
$('div.sliders input').val(_3D.neutral3d);
} else {
$('div.sliders input').val(MISC.mincommand);
@ -502,4 +507,4 @@ TABS.motors.initialize = function (callback) {
TABS.motors.cleanup = function (callback) {
if (callback) callback();
};
};