Skip to content

ElevatorC/heis3.0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#README
<hi, oh I'm here please read me>

## Important if you ARE going to code on this project
Code conventions:
- Code is coded in english
* Only small letters in filename no symbols whitespaces or numbers
	* myfile.c
	* myheader.h
- File and header name should be the same
- CamelCase for variableNames
- Underscore for function_names 
* for typer use type_t
	* struct myType_t
	* enum my_enum_t
* Big letters for #define's and ENUM's
	* #define CONSTANT 5

Name Explenations:
- ui=user interface
- sm=state machine
- elev=elevator
- queues = queue system

Class syntax:
* (filename)_function_name();

Spesification requirement not achived in FAT test:
- The elevator doesn't know which too floors it is in between.

Solution:
- sm_stop takes in a previousState parameter.
- It uses ui_get_floor_indicator and previousState to calculate which floors it is between and then goes to the correct action.

Releases

No releases published

Packages

No packages published

Languages

  • C 77.9%
  • Objective-C 15.8%
  • C++ 6.3%