Skip to content

Commit

Permalink
fix(AHRSIMU): fix the parameter sequence
Browse files Browse the repository at this point in the history
- the sequence of parameters of function 'TM_AHRSIMU_Init' in source file and header file are different, this commit fix this bug
  • Loading branch information
CHANShu0508 committed Feb 3, 2021
1 parent faf3f42 commit 8731a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 00-STM32_LIBRARIES/tm_stm32_ahrs_imu.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void calculateAngles(TM_AHRSIMU_t* AHRSIMU) {
}
}

void TM_AHRSIMU_Init(TM_AHRSIMU_t* AHRSIMU, float beta, float sampleRate, float inclination) {
void TM_AHRSIMU_Init(TM_AHRSIMU_t* AHRSIMU, float sampleRate, float beta, float inclination) {
AHRSIMU->_beta = beta;
AHRSIMU->_sampleRate = 1 / sampleRate;
AHRSIMU->Inclination = inclination;
Expand Down

0 comments on commit 8731a9b

Please sign in to comment.