ardupilot/libraries/AP_AnalogSource/AnalogSource.h
Andrew Tridgell 7c939e83e0 AnalogSource: return a float from read() method
this gives the full resolution when using the ADC backend. It also
adds scaling for the Arduino backend
2011-12-17 07:29:09 +11:00

12 lines
162 B
C++

#ifndef __ANALOG_SOURCE_H__
#define __ANALOG_SOURCE_H__
class AP_AnalogSource
{
public:
virtual float read(void) = 0;
};
#endif // __ANALOG_SOURCE_H__