MK的V0.71h Code Redesign killagreg中的函数SearchGyroOffset()函数是什么作用,用来
问一下:MK的V0.71h Code Redesign killagreg程序中:函数void CalibMean(void)
{
if(BoardRelease == 13) SearchGyroOffset();
// stop ADC to avoid changing values during calculation
ADC_Disable();
Reading_GyroNick = AdValueGyrNick;
Reading_GyroRoll= AdValueGyrRoll;
Reading_GyroYaw = AdValueGyrYaw;
Mean_AccNick = ACC_AMPLIFY * (int32_t)AdValueAccNick;
Mean_AccRoll= ACC_AMPLIFY * (int32_t)AdValueAccRoll;
Mean_AccTop = (int32_t)AdValueAccTop;
// start ADC (enables internal trigger so that the ISR in analog.c
// updates the readings once)
ADC_Enable();
TurnOver180Nick = (int32_t) ParamSet.AngleTurnOverNick * 2500L;
TurnOver180Roll =(int32_t) ParamSet.AngleTurnOverRoll* 2500L;
}
中的:SearchGyroOffset()函数是什么作用,用来做什么的? 设定气压初始的偏差
页:
[1]