Skip to content

Commit

Permalink
Merge pull request #34 from OpenROV/30.0.3
Browse files Browse the repository at this point in the history
30.0.3
  • Loading branch information
Charles Cross committed Jun 2, 2016
2 parents 3a65039 + 1916113 commit 236d7e2
Show file tree
Hide file tree
Showing 160 changed files with 15,567 additions and 11,242 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ OpenROV/Debug/*
OpenROV/Visual Micro/*

OpenROV_tests/.build/*

OpenRov/__vm/*
dist/

*.sdf
*.sln
*.opensdf
*.suo
*.vcxproj
*.filters

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ deploy:
on:
repo: OpenROV/openrov-software-arduino
all_branches: true
condition: "($REAL_GIT_BRANCH = master )||($REAL_GIT_BRANCH = pre-release )||($REAL_GIT_BRANCH = stable)"
condition: "($REAL_GIT_BRANCH = 30.0.3 )"

notifications:
webhooks:
Expand Down
58 changes: 39 additions & 19 deletions OpenROV/AConfig.h
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)
Loading

0 comments on commit 236d7e2

Please sign in to comment.