Files

copied
Last update 1 year 4 months by Kristóf Kovács
FilesArduino_Pedalboxinclude
..
ArduinoSerialInterface.hpp
ArduinoTimeInterface.hpp
ArduinoWrapper.hpp
LoadCell.hpp
Log.hpp
Pedal.hpp
Pedalbox.hpp
Potmeter.hpp
README
SensorConfig.h
SensorInterface.hpp
SerialInterface.hpp
TimeInterface.hpp
board_pinout.h
stopwatch.hpp
Pedalbox.hpp
#ifndef _PEDALBOX_HPP_ #define _PEDALBOX_HPP_ #include <stdint.h> #include <Joystick.h> #include "Pedal.hpp" class Pedalbox { public: Pedalbox(); ~Pedalbox(); void setBrakeSensor(SensorInterface* sensor); void setThrottleSensor(SensorInterface* sensor); void setClutchSensor(SensorInterface* sensor); void begin(); void refreshValues(); int32_t get_brake_value(); int32_t get_throttle_value(); int32_t get_clutch_value(); void updateController(); private: Joystick_ hid_controller; Pedal brake; Pedal throttle; Pedal clutch; int32_t brake_value; int32_t throttle_value; int32_t clutch_value; }; #endif //_PEDALBOX_HPP_
Report a bug