Browse Source

Rename servo input ONE to MAX

master
Pawel Spychalski (DzikuVx) 5 years ago
parent
commit
debbf9ec43
  1. 2
      docs/Mixer.md
  2. 2
      src/main/flight/servos.c
  3. 2
      src/main/flight/servos.h

2
docs/Mixer.md

@ -82,7 +82,7 @@ Each servo mixing rule has the following parameters:
| 26 | Stabilized PITCH- | Clipped between -1000 and 0 |
| 27 | Stabilized YAW+ | Clipped between 0 and 1000 |
| 28 | Stabilized YAW- | Clipped between -1000 and 0 |
| 29 | One | Constant value of 500 |
| 29 | MAX | Constant value of 500 |
The `smix reset` command removes all the existing motor mixing rules.

2
src/main/flight/servos.c

@ -263,7 +263,7 @@ void servoMixer(float dT)
input[INPUT_FEATURE_FLAPS] = FLIGHT_MODE(FLAPERON) ? servoConfig()->flaperon_throw_offset : 0;
input[INPUT_LOGIC_ONE] = 500;
input[INPUT_MAX] = 500;
#ifdef USE_LOGIC_CONDITIONS
input[INPUT_GVAR_0] = constrain(gvGet(0), -1000, 1000);
input[INPUT_GVAR_1] = constrain(gvGet(1), -1000, 1000);

2
src/main/flight/servos.h

@ -53,7 +53,7 @@ typedef enum {
INPUT_STABILIZED_PITCH_MINUS = 26,
INPUT_STABILIZED_YAW_PLUS = 27,
INPUT_STABILIZED_YAW_MINUS = 28,
INPUT_LOGIC_ONE = 29,
INPUT_MAX = 29,
INPUT_GVAR_0 = 30,
INPUT_GVAR_1 = 31,
INPUT_GVAR_2 = 32,

Loading…
Cancel
Save