#include <elevator.h>
Data Fields | |
uint8_t | currFloor |
uint8_t | destination |
door_t | door |
cartState_t | state |
cartState_t | prevState |
direction_t | dir |
Elevator struct is a custom structure that will hold all the data for the elevator.
This is a custom structure for the Elevator
uint8_t Elevator::currFloor |
current floor
uint8_t Elevator::destination |
floor destination
direction_t Elevator::dir |
direction of the motors
door_t Elevator::door |
door enum
cartState_t Elevator::prevState |
previous state
cartState_t Elevator::state |
state of the cart