ardupilot/libraries/AP_ADC/AP_ADC.h
james.goppert cce122d387 Moved APM_ADC to AP_ADC
git-svn-id: https://arducopter.googlecode.com/svn/trunk@954 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-11-27 05:36:19 +00:00

32 lines
743 B
C++

#ifndef AP_ADC_H
#define AP_ADC_H
/*
AP_ADC.cpp - Analog Digital Converter Base Class for Ardupilot Mega
Code by James Goppert. DIYDrones.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Methods:
Init() : Initialization of ADC. (interrupts etc)
Ch(ch_num) : Return the ADC channel value
*/
class AP_ADC
{
public:
AP_ADC(); // Constructor
virtual void Init();
virtual int Ch(unsigned char ch_num);
private:
};
#include "AP_ADC_ADS7844.h"
#include "AP_ADC_HIL.h"
#endif