|
1 |
| -#ifndef __ACONFIG_H_ |
2 |
| -#define __ACONFIG_H_ |
| 1 | +#pragma once |
3 | 2 |
|
4 |
| -/* This must be before alphabetically before all other files that reference these settings for the compiler to work |
5 |
| -* or you may get vtable errors. |
6 |
| -*/ |
7 |
| - |
8 |
| -/* This section is for devices and their configuration. IF you have not setup you pins with the |
| 3 | +/* This section is for modules and their configuration. IF you have not setup you pins with the |
9 | 4 | * standard configuration of the OpenROV kits, you should probably clone the cape or controlboard
|
10 | 5 | * and change the pin definitions there. Things not wired to specific pins but on the I2C bus will
|
11 | 6 | * have the address defined in this file.
|
12 | 7 | */
|
13 | 8 |
|
14 | 9 | #include "BoardConfig.h"
|
15 | 10 |
|
16 |
| -//Kit: |
17 |
| -// The boards are auto configure in the on beaglebone build process in the BoardConfig.h which gets |
| 11 | +// Kit: |
| 12 | +// The boards are auto configure in the on-beaglebone build process in the BoardConfig.h which gets |
18 | 13 | // created. If running directly in an IDE, the BoardConfig.h wont exist and the #defines below will be
|
19 | 14 | // used instead.
|
20 | 15 |
|
21 |
| -#if !defined(HAS_STD_CAPE) && !defined(HAS_OROV_CONTROLLERBOARD_25) |
| 16 | +// --------------------------------------------------------- |
| 17 | +// Standard Modules |
| 18 | +// --------------------------------------------------------- |
| 19 | + |
| 20 | +// Choose a cape or controller board |
22 | 21 | #define HAS_STD_CAPE (0)
|
23 | 22 | #define HAS_OROV_CONTROLLERBOARD_25 (1)
|
| 23 | + |
| 24 | +#if !(HAS_OROV_CONTROLLERBOARD_25) && !(HAS_STD_CAPE) |
| 25 | +# error "You must select either standard cape or controllerboard25 in the AConfig.h file as they have predefined pin values required by other libraries." |
24 | 26 | #endif
|
25 | 27 |
|
26 | 28 | #define HAS_STD_LIGHTS (1)
|
27 | 29 | #define HAS_STD_CALIBRATIONLASERS (1)
|
28 |
| -#define HAS_STD_2X1_THRUSTERS (1) |
29 | 30 | #define HAS_STD_CAMERAMOUNT (1)
|
30 |
| -#define HAS_STD_PILOT (1) |
| 31 | +#define HAS_STD_AUTOPILOT (1) |
| 32 | +#define HAS_EXP_AUTOPILOT (0) |
| 33 | +#define HAS_ALT_SERVO (1) |
31 | 34 | #define DEADMANSWITCH_ON (1)
|
32 | 35 |
|
33 |
| -//After Market: |
| 36 | +// Thrusters configurations |
| 37 | +#define THRUSTER_CONFIG_NONE (0) |
| 38 | +#define THRUSTER_CONFIG_2X1 (1) |
| 39 | + |
| 40 | +// Selected Thruster Configuration |
| 41 | +#define THRUSTER_CONFIGURATION THRUSTER_CONFIG_2X1 |
| 42 | + |
| 43 | + |
| 44 | +// --------------------------------------------------------- |
| 45 | +// After Market Modules |
| 46 | +// --------------------------------------------------------- |
| 47 | + |
| 48 | +// Pololu MINIMUV |
34 | 49 | #define HAS_POLOLU_MINIMUV (0)
|
| 50 | + |
| 51 | +// MS5803_XXBA Depth Sensor |
35 | 52 | #define HAS_MS5803_XXBA (1)
|
36 | 53 | #define MS5803_XXBA_I2C_ADDRESS 0x76
|
| 54 | + |
| 55 | +// MPU9150 IMU |
37 | 56 | #define HAS_MPU9150 (1)
|
38 |
| -#define MPU9150_EEPROM_START 2 |
39 | 57 | #define HAS_BNO055 (1)
|
| 58 | +#define MPU9150_EEPROM_START 2 |
| 59 | +#define HAS_ALT_SERVO (1) |
| 60 | +#define ALTS_MIDPOINT 1500 |
| 61 | +#define ALTS_MINPOINT 1000 |
| 62 | +#define ALTS_MAXPOINT 2000 |
40 | 63 |
|
41 |
| -#if !(HAS_OROV_CONTROLLERBOARD_25) && !(HAS_STD_CAPE) |
42 |
| -# error "You must select either standard cape or controllerboard25 in the AConfig.h file as they have predefined pin values required by other libraries." |
43 |
| -#endif |
44 |
| - |
45 |
| -#endif |
| 64 | +// BNO055 IMU |
| 65 | +#define HAS_BNO055 (1) |
0 commit comments