Documentation
¶
Overview ¶
Package driver provides control of both simulated and actual lifts. The package also provide functionality for handling internal orders, as well as taking external orders.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoToFloor ¶
GoToFloor sends the lift carriage to the desired floor and stop there, unless it is stopped before arriving at its destination. A second call to the function will void the previous order if the carriage haven't reached its destination.
func Init ¶
Init initializes the driver, and return an error on the done-channel if unable to initialize the driver
func StopForPickup ¶
StopForPickup can be called if the lift should stop in the next floor, to pick someone up.
Types ¶
type BtnType ¶
type BtnType int
BtnType defines the 3 types of buttons that are in use. In order to use the correct integer, the types are available as constants.