Changed logic
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
/**** Includes ****/
|
||||
#include <stdint.h>
|
||||
#include "../board/ain.h"
|
||||
#include "../bsp/ain.h"
|
||||
|
||||
namespace hw {
|
||||
|
||||
@@ -12,17 +12,17 @@ namespace hw {
|
||||
class Potentiometer
|
||||
{
|
||||
protected:
|
||||
board::AnalogIn* ain_ch;
|
||||
bsp::AnalogIn* ain_ch;
|
||||
|
||||
public:
|
||||
Potentiometer(board::AnalogIn* ain_ch, uint16_t low_deadzone, uint16_t high_deadzone);
|
||||
Potentiometer(bsp::AnalogIn* ain_ch, uint16_t low_deadzone, uint16_t high_deadzone);
|
||||
~Potentiometer(void);
|
||||
|
||||
uint16_t low_deadzone;
|
||||
uint16_t high_deadzone;
|
||||
uint8_t percent;
|
||||
|
||||
uint8_t read(void);
|
||||
uint8_t update(void);
|
||||
};
|
||||
|
||||
/**** Public function declarations ****/
|
||||
|
||||
Reference in New Issue
Block a user