Skip to content

Commit

Permalink
Fix data types in mixer
Browse files Browse the repository at this point in the history
  • Loading branch information
pmattila committed Jun 20, 2024
1 parent 71c7bbe commit 820c0d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/flight/mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ typedef struct {
float input[MIXER_INPUT_COUNT];
float output[MIXER_OUTPUT_COUNT];

uint32_t mapping[MIXER_OUTPUT_COUNT];
bitmap_t mapping[MIXER_OUTPUT_COUNT];
int16_t override[MIXER_INPUT_COUNT];
uint16_t saturation[MIXER_INPUT_COUNT];

Expand All @@ -117,7 +117,7 @@ typedef struct {
float cyclicPhaseSin;
float cyclicPhaseCos;

uint32_t cyclicMapping;
bitmap_t cyclicMapping;

} mixerData_t;

Expand All @@ -134,9 +134,9 @@ static float mixerInputHistory[4][MIXER_HISTORY_TIME];

static FAST_DATA_ZERO_INIT uint16_t historyIndex;

float mixerGetInputHistory(uint8_t i, uint16_t delay)
float mixerGetInputHistory(uint8_t index, uint16_t delay)
{
return mixerInputHistory[i][(historyIndex - delay) & MIXER_HISTORY_MASK];
return mixerInputHistory[index][(historyIndex - delay) & MIXER_HISTORY_MASK];
}

static inline void mixerUpdateHistory(void)
Expand Down

0 comments on commit 820c0d6

Please sign in to comment.