Browse Source

AP_RangeFinder - change sonar example sketch to use default Sonar PIN for APM2 (A1)

master
Randy Mackay 13 years ago
parent
commit
e070109e21
  1. 2
      libraries/AP_RangeFinder/examples/AP_RangeFinder_test/AP_RangeFinder_test.pde

2
libraries/AP_RangeFinder/examples/AP_RangeFinder_test/AP_RangeFinder_test.pde

@ -30,7 +30,7 @@ ModeFilter mode_filter; @@ -30,7 +30,7 @@ ModeFilter mode_filter;
AP_ADC_ADS7844 adc;
AP_AnalogSource_ADC adc_source(&adc, AP_RANGEFINDER_PITOT_TYPE_ADC_CHANNEL, 0.25); // use Pitot tube
#else
AP_AnalogSource_Arduino adc_source(A4); // use AN4 analog pin (APM1: on oilpan at back right near the CLI switch. APM2: on left)
AP_AnalogSource_Arduino adc_source(A1); // use AN1 analog pin (APM1: on oilpan at back right near the CLI switch. APM2: on left)
#endif
// create the range finder object

Loading…
Cancel
Save