Rev 2055 | Rev 2071 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2055 | Rev 2069 | ||
---|---|---|---|
Line 396... | Line 396... | ||
396 | // Z acc. |
396 | // Z acc. |
397 | if (staticParams.imuReversedFlags & 8) |
397 | if (staticParams.imuReversedFlags & 8) |
398 | acc[Z] = accOffset.offsets[Z] - sensorInputs[AD_ACC_Z]; |
398 | acc[Z] = accOffset.offsets[Z] - sensorInputs[AD_ACC_Z]; |
399 | else |
399 | else |
400 | acc[Z] = sensorInputs[AD_ACC_Z] - accOffset.offsets[Z]; |
400 | acc[Z] = sensorInputs[AD_ACC_Z] - accOffset.offsets[Z]; |
- | 401 | ||
- | 402 | debugOut.analog[29] = acc[Z]; |
|
401 | } |
403 | } |
Line 402... | Line 404... | ||
402 | 404 | ||
403 | void analog_updateAirPressure(void) { |
405 | void analog_updateAirPressure(void) { |
404 | static uint16_t pressureAutorangingWait = 25; |
406 | static uint16_t pressureAutorangingWait = 25; |