-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from OpenROV/30.0.3
30.0.3
- Loading branch information
Showing
160 changed files
with
15,567 additions
and
11,242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,65 @@ | ||
#ifndef __ACONFIG_H_ | ||
#define __ACONFIG_H_ | ||
#pragma once | ||
|
||
/* This must be before alphabetically before all other files that reference these settings for the compiler to work | ||
* or you may get vtable errors. | ||
*/ | ||
|
||
/* This section is for devices and their configuration. IF you have not setup you pins with the | ||
/* This section is for modules and their configuration. IF you have not setup you pins with the | ||
* standard configuration of the OpenROV kits, you should probably clone the cape or controlboard | ||
* and change the pin definitions there. Things not wired to specific pins but on the I2C bus will | ||
* have the address defined in this file. | ||
*/ | ||
|
||
#include "BoardConfig.h" | ||
|
||
//Kit: | ||
// The boards are auto configure in the on beaglebone build process in the BoardConfig.h which gets | ||
// Kit: | ||
// The boards are auto configure in the on-beaglebone build process in the BoardConfig.h which gets | ||
// created. If running directly in an IDE, the BoardConfig.h wont exist and the #defines below will be | ||
// used instead. | ||
|
||
#if !defined(HAS_STD_CAPE) && !defined(HAS_OROV_CONTROLLERBOARD_25) | ||
// --------------------------------------------------------- | ||
// Standard Modules | ||
// --------------------------------------------------------- | ||
|
||
// Choose a cape or controller board | ||
#define HAS_STD_CAPE (0) | ||
#define HAS_OROV_CONTROLLERBOARD_25 (1) | ||
|
||
#if !(HAS_OROV_CONTROLLERBOARD_25) && !(HAS_STD_CAPE) | ||
# error "You must select either standard cape or controllerboard25 in the AConfig.h file as they have predefined pin values required by other libraries." | ||
#endif | ||
|
||
#define HAS_STD_LIGHTS (1) | ||
#define HAS_STD_CALIBRATIONLASERS (1) | ||
#define HAS_STD_2X1_THRUSTERS (1) | ||
#define HAS_STD_CAMERAMOUNT (1) | ||
#define HAS_STD_PILOT (1) | ||
#define HAS_STD_AUTOPILOT (1) | ||
#define HAS_EXP_AUTOPILOT (0) | ||
#define HAS_ALT_SERVO (1) | ||
#define DEADMANSWITCH_ON (1) | ||
|
||
//After Market: | ||
// Thrusters configurations | ||
#define THRUSTER_CONFIG_NONE (0) | ||
#define THRUSTER_CONFIG_2X1 (1) | ||
|
||
// Selected Thruster Configuration | ||
#define THRUSTER_CONFIGURATION THRUSTER_CONFIG_2X1 | ||
|
||
|
||
// --------------------------------------------------------- | ||
// After Market Modules | ||
// --------------------------------------------------------- | ||
|
||
// Pololu MINIMUV | ||
#define HAS_POLOLU_MINIMUV (0) | ||
|
||
// MS5803_XXBA Depth Sensor | ||
#define HAS_MS5803_XXBA (1) | ||
#define MS5803_XXBA_I2C_ADDRESS 0x76 | ||
|
||
// MPU9150 IMU | ||
#define HAS_MPU9150 (1) | ||
#define MPU9150_EEPROM_START 2 | ||
#define HAS_BNO055 (1) | ||
#define MPU9150_EEPROM_START 2 | ||
#define HAS_ALT_SERVO (1) | ||
#define ALTS_MIDPOINT 1500 | ||
#define ALTS_MINPOINT 1000 | ||
#define ALTS_MAXPOINT 2000 | ||
|
||
#if !(HAS_OROV_CONTROLLERBOARD_25) && !(HAS_STD_CAPE) | ||
# error "You must select either standard cape or controllerboard25 in the AConfig.h file as they have predefined pin values required by other libraries." | ||
#endif | ||
|
||
#endif | ||
// BNO055 IMU | ||
#define HAS_BNO055 (1) |
Oops, something went wrong.