Subversion Repositories FlightCtrl

Rev

Rev 1910 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1910 Rev 2025
Line 4... Line 4...
4
#include "timer0.h"
4
#include "timer0.h"
Line 5... Line 5...
5
 
5
 
6
#define PITCHROLL_MINLIMIT GYRO_SUMMATION_FACTOR_PITCHROLL * 510
6
#define PITCHROLL_MINLIMIT GYRO_SUMMATION_FACTOR_PITCHROLL * 510
Line 7... Line 7...
7
#define PITCHROLL_MAXLIMIT GYRO_SUMMATION_FACTOR_PITCHROLL * 515
7
#define PITCHROLL_MAXLIMIT GYRO_SUMMATION_FACTOR_PITCHROLL * 515
8
 
8
 
9
const uint8_t GYROS_REVERSED = 0;
9
const uint8_t PR_GYROS_ORIENTATION_REVERSED = 0;
10
const uint8_t GYRO_QUADRANT = 0;
10
const uint8_t GYRO_QUADRANT = 0;
Line 11... Line 11...
11
const uint8_t YAW_REVERSED = 1;
11
const uint8_t YAW_GYRO_REVERSED = 1;
12
const uint8_t Z_ACC_REVERSED = 0;
12
const uint8_t Z_ACC_REVERSED = 0;
13
 
13
 
Line 63... Line 63...
63
        }
63
        }
64
        delay_ms_Mess(70);
64
        delay_ms_Mess(70);
65
}
65
}
Line 66... Line 66...
66
 
66
 
67
void gyro_setDefaults(void) {
67
void gyro_setDefaults(void) {
68
        staticParams.DriftComp = 200;
68
        staticParams.zerothOrderGyroCorrectionFactorx1000 = 25;
69
        staticParams.GyroAccFactor = 25;
69
        staticParams.secondOrderGyroCorrectionDivisor = 1;
70
        staticParams.GyroAccTrim = 1;
70
        staticParams.secondOrderGyroCorrectionLimit = 200;