mirror of https://github.com/ArduPilot/ardupilot
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:
parent
c117b41188
commit
4820e0b2c7
|
@ -131,7 +131,7 @@ void PXFAnalogSource::set_settle_time(uint16_t settle_time_ms)
|
|||
PXFAnalogIn::PXFAnalogIn()
|
||||
{}
|
||||
|
||||
void PXFAnalogIn::init(void* machtnichts)
|
||||
void PXFAnalogIn::init()
|
||||
{}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue