2,21 → 2,11 |
#define _SENSORS_H |
|
#include <inttypes.h> |
#include "configuration.h" |
|
/* |
* Whether (pitch, roll, yaw) gyros are reversed (see analog.h). |
*/ |
extern const uint8_t GYRO_QUADRANT; |
extern const uint8_t YAW_GYRO_REVERSED; |
extern const uint8_t PR_GYROS_ORIENTATION_REVERSED; |
extern sensorOffset_t gyroAmplifierOffset; |
|
/* |
* Whether (pitch, roll, Z) acc. meters are reversed(see analog.h). |
*/ |
//extern const uint8_t ACC_QUADRANT; |
extern const uint8_t Z_ACC_REVERSED; |
|
/* |
* Common procedures for all gyro types. |
* FC 1.3 hardware: Searching the DAC values that return neutral readings. |
* FC 2.0 hardware: Nothing to do. |
25,8 → 15,13 |
void gyro_calibrate(void); |
|
/* |
* FC 1.3: Output data in gyroAmplifierOffset to DAC. All other versions: Do nothing. |
*/ |
void gyro_init(void); |
|
/* |
* Set some default FC parameters, depending on gyro type: Drift correction etc. |
*/ |
void gyro_setDefaults(void); |
void gyro_setDefaultParameters(void); |
|
#endif |