Elevator v2.0
Elevator Documenation
Loading...
Searching...
No Matches
Elevator Struct Reference

Elevator elevator.h. More...

#include <elevator.h>

Collaboration diagram for Elevator:
Collaboration graph

Data Fields

uint8_t currFloor
 
uint8_t destination
 
door_t door
 
cartState_t state
 
cartState_t prevState
 
direction_t dir
 

Detailed Description

Elevator elevator.h.

Elevator struct is a custom structure that will hold all the data for the elevator.

This is a custom structure for the Elevator

Example

typedef struct Elevator{
uint8_t currFloor;
uint8_t destination;
cartState_t
cartState_t elevator.h
Definition: elevator.h:33
door_t
door_t elevator.h
Definition: elevator.h:80
direction_t
direction_t elevator.h
Definition: elevator.h:58
Elevator elevator.h.
Definition: elevator.h:103
uint8_t destination
Definition: elevator.h:105
cartState_t prevState
Definition: elevator.h:108
direction_t dir
Definition: elevator.h:109
uint8_t currFloor
Definition: elevator.h:104
cartState_t state
Definition: elevator.h:107
door_t door
Definition: elevator.h:106

Field Documentation

◆ currFloor

uint8_t Elevator::currFloor

current floor

◆ destination

uint8_t Elevator::destination

floor destination

◆ dir

direction_t Elevator::dir

direction of the motors

◆ door

door_t Elevator::door

door enum

◆ prevState

cartState_t Elevator::prevState

previous state

◆ state

cartState_t Elevator::state

state of the cart


The documentation for this struct was generated from the following file: