Documentation
¶
Index ¶
Constants ¶
View Source
const ( IDLE State = 0 MOVING = 1 DOOROPEN = 2 IMMOBILE = 3 )
View Source
const ( NotActive Status = 0 WaitingForCost = 1 Unconfirmed = 2 Confirmed = 3 Mine = 4 Done = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FsmChannels ¶
type Order ¶
type Order struct {
Floor int
DirectionUp bool
DirectionDown bool
CabOrder bool
Cost [NUMBER_OF_ELEVATORS]int
Status Status
TimedOut bool
FromId int
Timestamp int64
}
Structures
type OrderDistributorChannels ¶
type OrderDistributorChannels struct {
OrderUpdate chan Order
NewButtonEvent chan elevio.ButtonEvent
OrderTransmitter chan Order
OrderReciever chan Order
}
Click to show internal directories.
Click to hide internal directories.