armchair_fw/common/chairAdjust.hpp
jonny_jr9 9dfe1bddb2 Add chairAdjust driver, Add joystick control
- Add functions that control the relays for adjusting the armchair
  position
- Add function that controls the chair using joystick input
2023-10-08 14:19:04 +02:00

29 lines
636 B
C++

#pragma once
typedef enum {
REST_OFF = 0,
REST_DOWN = -1,
REST_UP = 1
} restState_t;
//Set direction functions for leg-rest
void setLegrestUp();
void setLegrestDown();
void setLegrestOff();
//Set direction functions for back-rest
void setBackrestUp();
void setBackrestDown();
void setBackrestOff();
//Run leg-rest with target direction/state
// 0 = OFF; <0 = DOWN; >0 = UP
void runLegrest(float targetDirection);
void runLegrest(restState_t targetState);
//Run back-rest with target direction/state
// 0 = OFF; <0 = DOWN; >0 = UP
void runBackrest(float targetDirection);
void runBackrest(restState_t targetState);