HAL_Linux: AnalogIn_PXF changes in AnalogIn

Recent changes in AP_HAL::AnalogIn have made the previous
code not valid anymore. This commit fixes the init()
method and adds common headers.
This commit is contained in:
Víctor Mayoral Vilches 2015-12-31 00:38:56 +01:00 committed by Lucas De Marchi
parent c117b41188
commit 4820e0b2c7
2 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,7 @@ void PXFAnalogSource::set_settle_time(uint16_t settle_time_ms)
PXFAnalogIn::PXFAnalogIn()
{}
void PXFAnalogIn::init(void* machtnichts)
void PXFAnalogIn::init()
{}

View File

@ -3,6 +3,8 @@
#define __AP_HAL_PXF_ANALOGIN_H__
#include "AP_HAL_Linux.h"
#include <AP_ADC/AP_ADC.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@ -45,7 +47,7 @@ private:
class PXFAnalogIn : public AP_HAL::AnalogIn {
public:
PXFAnalogIn();
void init(void* implspecific);
void init();
AP_HAL::AnalogSource* channel(int16_t n);
// we don't yet know how to get the board voltage