Browse Source

ACM - removed references to MaxSonar LV sonar

git-svn-id: https://arducopter.googlecode.com/svn/trunk@3236 f9c3cf11-9bcb-44bc-f272-b75c42450872
mission-4.1.18
rmackay9@yahoo.com 14 years ago
parent
commit
28908ee933
  1. 6
      ArduCopterMega/ArduCopterMega.pde
  2. 5
      ArduCopterMega/defines.h

6
ArduCopterMega/ArduCopterMega.pde

@ -225,10 +225,8 @@ ModeFilter sonar_mode_filter; @@ -225,10 +225,8 @@ ModeFilter sonar_mode_filter;
#if SONAR_TYPE == MAX_SONAR_XL
AP_RangeFinder_MaxsonarXL sonar(&adc, &sonar_mode_filter);//(SONAR_PORT, &adc);
#elif SONAR_TYPE == MAX_SONAR_LV
// XXX honestly I think these output the same values
// If someone knows, can they confirm it?
AP_RangeFinder_MaxsonarXL sonar(&adc, &sonar_mode_filter);//(SONAR_PORT, &adc);
#else
#error Unrecognised SONAR_TYPE setting.
#endif
////////////////////////////////////////////////////////////////////////////////

5
ArduCopterMega/defines.h

@ -62,9 +62,8 @@ @@ -62,9 +62,8 @@
#define GPS_PROTOCOL_AUTO 7
// SONAR types:
#define MAX_SONAR_XL 0
#define MAX_SONAR_LV 1
#define MAX_SONAR_UNKNOWN 0
#define MAX_SONAR_XL 1
// Radio channels
// Note channels are from 0!

Loading…
Cancel
Save