00001 #ifndef AP_ADC_H 00002 #define AP_ADC_H 00003 00004 /* 00005 AP_ADC.cpp - Analog Digital Converter Base Class for Ardupilot Mega 00006 Code by James Goppert. DIYDrones.com 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2.1 of the License, or (at your option) any later version. 00012 00013 Methods: 00014 Init() : Initialization of ADC. (interrupts etc) 00015 Ch(ch_num) : Return the ADC channel value 00016 00017 */ 00018 00019 class AP_ADC 00020 { 00021 public: 00022 AP_ADC(); // Constructor 00023 virtual void Init(); 00024 virtual int Ch(unsigned char ch_num); 00025 private: 00026 }; 00027 00028 #include "AP_ADC_ADS7844.h" 00029 #include "AP_ADC_HIL.h" 00030 00031 #endif