Fixed apo radio error.

This commit is contained in:
James Goppert 2011-11-28 12:29:05 -05:00
parent cc1593d16d
commit e8d74ae3fe
3 changed files with 7 additions and 4 deletions

View File

@ -31,7 +31,7 @@ set(APPLICATION_VERSION "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINO
# macros
include(MacroEnsureOutOfSourceBuild)
include(UseDoxygen)
#include(UseDoxygen)
# disallow in-source build
macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build.

View File

@ -37,12 +37,14 @@ void setup() {
hal->debug = &Serial;
hal->debug->println_P(PSTR("initializing debug line"));
// initialize radio
hal->radio = new APM_RC_APM1;
/*
* Sensor initialization
*/
if (hal->getMode() == MODE_LIVE) {
hal->radio = new APM_RC_APM1;
hal->debug->println_P(PSTR("initializing adc"));
hal->adc = new ADC_CLASS;
@ -131,7 +133,7 @@ void setup() {
/*
* navigation sensors
*/
hal->imu = new AP_IMU_INS(new AP_InertialSensor_Oilpan(hal->adc), k_sensorCalib);
//hal->imu = new AP_IMU_INS(new AP_InertialSensor_Oilpan(hal->adc), k_sensorCalib);
//hal->imu = AP_IMU_INS(new AP_InertialSensor_MPU6000(mpu6000SelectPin), k_sensorCalib);
}

View File

@ -49,7 +49,8 @@ public:
// initialized
AP_HardwareAbstractionLayer(halMode_t mode, board_t board,
vehicle_t vehicle, uint8_t heartBeatTimeout) :
adc(), gps(), baro(), compass(), rangeFinders(), imu(), batteryMonitor(), rc(), gcs(),
adc(), gps(), baro(), compass(), rangeFinders(), imu(), batteryMonitor(),
radio(), rc(), gcs(),
hil(), debug(), load(), lastHeartBeat(),
_heartBeatTimeout(heartBeatTimeout), _mode(mode),
_board(board), _vehicle(vehicle) {