Browse Source

adding 5883 mag support part 1

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2473 f9c3cf11-9bcb-44bc-f272-b75c42450872
mission-4.1.18
dhcorley@msn.com 14 years ago
parent
commit
19c6f87821
  1. 7
      ArduCopterMega/ArduCopterMega.pde

7
ArduCopterMega/ArduCopterMega.pde

@ -99,7 +99,14 @@ GPS *g_gps;
// real sensors // real sensors
AP_ADC_ADS7844 adc; AP_ADC_ADS7844 adc;
APM_BMP085_Class barometer; APM_BMP085_Class barometer;
// MAG PROTOCOL
#if MAG_PROTOCOL == MAG_PROTOCOL_5843
AP_Compass_HMC5843 compass(Parameters::k_param_compass); 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 // real GPS selection
#if GPS_PROTOCOL == GPS_PROTOCOL_AUTO #if GPS_PROTOCOL == GPS_PROTOCOL_AUTO

Loading…
Cancel
Save