/branches/dongfang_FC_fixedwing/analog.c |
---|
412,7 → 412,7 |
// determine gyro bias by averaging (requires that the aircraft does not rotate around any axis!) |
for (i = 0; i < OFFSET_CYCLES; i++) { |
delay_ms_with_adc_measurement(2, 1); |
delay_ms_with_adc_measurement(4, 1); |
for (axis = PITCH; axis <= YAW; axis++) { |
offsets[axis] += rawGyroValue(axis); |
} |