You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
450 B
24 lines
450 B
#ifndef INPUT_HPP
|
|
#define INPUT_HPP
|
|
#include "Arduino.h"
|
|
|
|
class IO_DATA {
|
|
private:
|
|
void adc_init(void);
|
|
uint16_t adc_read(uint8_t ch);
|
|
|
|
public:
|
|
uint16_t r_x, r_y;
|
|
bool r_sw;
|
|
uint16_t l_x, l_y;
|
|
bool l_sw;
|
|
bool arm_sw;
|
|
bool flight_mode_sw;
|
|
uint16_t akku_power;
|
|
|
|
IO_DATA();
|
|
void init();
|
|
void update();
|
|
};
|
|
|
|
#endif /* INPUT_HPP */
|