func ElevInit() { C.elev_init() ClearAllButtonLamps() SetStopLamp(0) SetDoorOpenLamp(0) SetFloorIndicator(0) SetMotorDirection(DirnDown) for GetFloorSignal() == -1 { } SetMotorDirection(DirnStop) }
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") }
func Elev_init() int { return int(C.elev_init()) }
func HardwareInit() { C.elev_init() }
// Init initializes the elevator, resets all lamps. func Init() { log.Debug("Initializing driver") C.elev_init() }
func Elev_init() { C.elev_init() }
// start: real driver functions // INPUT to controller func Init() { C.elev_init() }
func LiftDriver_Initialize() bool { return int(C.elev_init()) != 0 }