Loading...
Searching...
No Matches
params.h
1#ifndef _PARAMS_H
2#define _PARAMS_H
3
4/* ===================================================================== *
5 * FLIGHT THRESHOLDS *
6 * ===================================================================== */
7
8#define ACCEL_LAUNCH 5.0f
9#define MAIN_ALTITUDE_METERS 396.0f
10
11/* ===================================================================== *
12 * DEVICE AXES *
13 * ===================================================================== */
14
15// Accel 1
16#ifdef FLIGHT_TEST
17 // DRONE AXES
18 #define ACCEL_AXES_1 ((const uint8_t[]){0, 1, 2})
19 #define ACCEL_SIGN_1 ((const int8_t[]){1, 1, -1})
20#else
21 // FLIGHT AXES
22 #define ACCEL_AXES_1 ((const uint8_t[]){0, 2, 1})
23 #define ACCEL_SIGN_1 ((const int8_t[]){1, 1, -1})
24#endif
25
26// Accel 2
27#ifdef FLIGHT_TEST
28 // DRONE AXES
29 #define ACCEL_AXES_2 ((const uint8_t[]){0, 1, 2})
30 #define ACCEL_SIGN_2 ((const int8_t[]){1, 1, -1})
31#else
32 // FLIGHT AXES
33 #define ACCEL_AXES_2 ((const uint8_t[]){2, 0, 1})
34 #define ACCEL_SIGN_2 ((const int8_t[]){1, -1, 1})
35#endif
36
37// Gyroscope
38#define GYRO_AXES ((const uint8_t[]){0, 2, 1})
39#define GYRO_SIGN ((const int8_t[]){1, 1, 1})
40
41/* ===================================================================== *
42 * DEVICE SCALE *
43 * ===================================================================== */
44
45#define ACCEL_SCALE_HIGH 32
46#define ACCEL_SCALE_LOW 16
47
48#endif