コード例 #1
0
ファイル: driver.go プロジェクト: audunel/TTK4145
func ElevInit() {
	C.elev_init()

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

	SetMotorDirection(DirnDown)
	for GetFloorSignal() == -1 {
	}
	SetMotorDirection(DirnStop)
}
コード例 #2
0
ファイル: elev.go プロジェクト: sanntidT19/Sanntid2016
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")

}
コード例 #3
0
ファイル: driver.go プロジェクト: hakonBG/SanntidsHeis
func Elev_init() int {
	return int(C.elev_init())
}
コード例 #4
0
ファイル: driver.go プロジェクト: torees/Sanntid
func HardwareInit() {
	C.elev_init()
}
コード例 #5
0
ファイル: driver.go プロジェクト: knutaldrin/elevator
// Init initializes the elevator, resets all lamps.
func Init() {
	log.Debug("Initializing driver")
	C.elev_init()
}
コード例 #6
0
ファイル: elev.go プロジェクト: Aarvold/Heismappe
func Elev_init() {
	C.elev_init()
}
コード例 #7
0
// start: real driver functions
// INPUT to controller
func Init() {
	C.elev_init()
}
コード例 #8
0
ファイル: liftDriver.go プロジェクト: mathildh/driver
func LiftDriver_Initialize() bool {
	return int(C.elev_init()) != 0
}