Skip to content

Commit

Permalink
Increase mixer limits and drop calibration on RPYC
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattila committed Aug 22, 2024
1 parent a465808 commit 53ce1e6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/main/pg/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,22 @@ PG_REGISTER_ARRAY_WITH_RESET_FN(mixerInput_t, MIXER_INPUT_COUNT, mixerInputs, PG

void pgResetFn_mixerInputs(mixerInput_t *input)
{
for (int i = MIXER_IN_STABILIZED_ROLL; i < MIXER_IN_COUNT; i++) {
input[i].rate = 1000;
input[i].min = -1000;
input[i].max = 1000;
for (int i = MIXER_IN_STABILIZED_ROLL; i <= MIXER_IN_STABILIZED_COLLECTIVE; i++) {
input[i].rate = 500;
input[i].min = -1250;
input[i].max = 1250;
}

input[MIXER_IN_STABILIZED_YAW].rate = 250;

input[MIXER_IN_STABILIZED_THROTTLE].rate = 1000;
input[MIXER_IN_STABILIZED_THROTTLE].min = 0;
input[MIXER_IN_STABILIZED_THROTTLE].max = 1000;
}

for (int i = MIXER_IN_RC_COMMAND_ROLL; i <= MIXER_IN_RC_CHANNEL_18; i++) {
input[i].rate = 1000;
input[i].min = -1000;
input[i].max = 1000;
}
}

0 comments on commit 53ce1e6

Please sign in to comment.