1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-17 05:15:20 +03:00

Update servo angles to match

https://github.com/cleanflight/cleanflight/pull/1573
This commit is contained in:
Dominic Clifton 2016-01-11 15:37:36 +01:00
parent 1a58bfcf82
commit 509adcb6ff
2 changed files with 4 additions and 4 deletions

View file

@ -478,8 +478,8 @@ function configuration_restore(callback) {
for (var i = 0; i < configuration.profiles[profileIndex].ServoConfig.length; i++) { for (var i = 0; i < configuration.profiles[profileIndex].ServoConfig.length; i++) {
var servoConfig = profiles[profileIndex].ServoConfig; var servoConfig = profiles[profileIndex].ServoConfig;
servoConfig[i].angleAtMin = 90; servoConfig[i].angleAtMin = 45;
servoConfig[i].angleAtMax = 90; servoConfig[i].angleAtMax = 45;
servoConfig[i].reversedInputSources = 0; servoConfig[i].reversedInputSources = 0;
// set the rate to 0 if an invalid value is detected. // set the rate to 0 if an invalid value is detected.

View file

@ -512,8 +512,8 @@ var MSP = {
'max': data.getInt16(i + 2, 1), 'max': data.getInt16(i + 2, 1),
'middle': data.getInt16(i + 4, 1), 'middle': data.getInt16(i + 4, 1),
'rate': data.getInt8(i + 6), 'rate': data.getInt8(i + 6),
'angleAtMin': 90, 'angleAtMin': 45,
'angleAtMax': 90, 'angleAtMax': 45,
'indexOfChannelToForward': undefined, 'indexOfChannelToForward': undefined,
'reversedInputSources': 0 'reversedInputSources': 0
}; };