Ejemplo n.º 1
0
func ElevInit() {
	C.elev_init()

	ClearAllButtonLamps()
	SetStopLamp(0)
	SetDoorOpenLamp(0)
	SetFloorIndicator(0)

	SetMotorDirection(DirnDown)
	for GetFloorSignal() == -1 {
	}
	SetMotorDirection(DirnStop)
}
Ejemplo n.º 2
0
func ElevInit() {
	C.elev_init()
	lamp_channel_matrix = ElevMakeStdLMatrix()
	button_channel_matrix = ElevMakeStdBMatrix()
	if ElevGetFloorSensorSignal() == -1 {
		ElevDriveElevator(-1)
		for ElevGetFloorSensorSignal() == -1 {
			time.Sleep(50 * time.Millisecond)
		}
		ElevDriveElevator(0)
	}
	fmt.Printf("Initialization of elevator complete.\n")

}
Ejemplo n.º 3
0
func Elev_init() int {
	return int(C.elev_init())
}
Ejemplo n.º 4
0
func HardwareInit() {
	C.elev_init()
}
Ejemplo n.º 5
0
// Init initializes the elevator, resets all lamps.
func Init() {
	log.Debug("Initializing driver")
	C.elev_init()
}
Ejemplo n.º 6
0
func Elev_init() {
	C.elev_init()
}
Ejemplo n.º 7
0
// start: real driver functions
// INPUT to controller
func Init() {
	C.elev_init()
}
Ejemplo n.º 8
0
func LiftDriver_Initialize() bool {
	return int(C.elev_init()) != 0
}