- outsoruce common files and separate common types from source files (new common/types.hpp) - split source files to 2 board folders (relevant only, no duplicate) - currently boards compile successfull but not functional at all - comment out currently incompatible code
36 lines
894 B
C++
36 lines
894 B
C++
#pragma once
|
|
|
|
#include "joystick.hpp"
|
|
|
|
#include "gpio_evaluateSwitch.hpp"
|
|
#include "buzzer.hpp"
|
|
#include "control.hpp"
|
|
#include "http.hpp"
|
|
#include "auto.hpp"
|
|
|
|
|
|
//in IDLE mode: set loglevel for evaluatedJoystick to DEBUG
|
|
//and repeatedly read joystick e.g. for manually calibrating / testing joystick
|
|
//#define JOYSTICK_LOG_IN_IDLE
|
|
|
|
|
|
//TODO outsource global variables to e.g. global.cpp and only config options here?
|
|
|
|
//create global joystic instance
|
|
extern evaluatedJoystick joystick;
|
|
|
|
//create global evaluated switch instance for button next to joystick
|
|
extern gpio_evaluatedSwitch buttonJoystick;
|
|
|
|
//create global buzzer object
|
|
extern buzzer_t buzzer;
|
|
|
|
//create global control object
|
|
//extern controlledArmchair control;
|
|
|
|
//create global automatedArmchair object (for auto-mode)
|
|
extern automatedArmchair armchair;
|
|
|
|
//create global httpJoystick object
|
|
extern httpJoystick httpJoystickMain;
|