adding 5883 mag support part 1
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2473 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
8a19c0a392
commit
19c6f87821
@ -99,7 +99,14 @@ GPS *g_gps;
|
||||
// real sensors
|
||||
AP_ADC_ADS7844 adc;
|
||||
APM_BMP085_Class barometer;
|
||||
AP_Compass_HMC5843 compass(Parameters::k_param_compass);
|
||||
// MAG PROTOCOL
|
||||
#if MAG_PROTOCOL == MAG_PROTOCOL_5843
|
||||
AP_Compass_HMC5843 compass(Parameters::k_param_compass);
|
||||
#elif MAG_PROTOCOL == MAG_PROTOCOL_5883L
|
||||
AP_Compass_HMC5883L compass(Parameters::k_param_compass);
|
||||
#else
|
||||
#error Unrecognised MAG_PROTOCOL setting.
|
||||
#endif
|
||||
|
||||
// real GPS selection
|
||||
#if GPS_PROTOCOL == GPS_PROTOCOL_AUTO
|
||||
|
Loading…
Reference in New Issue
Block a user