Exemple #1
0
def setPhaseDuration(tlsID, phaseDuration):
    trace._sendIntCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PHASE_DURATION, tlsID,
                      int(1000 * phaseDuration))
Exemple #2
0
def setPhase(tlsID, index):
    trace._sendIntCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PHASE_INDEX, tlsID, index)
def setPhaseDuration(tlsID, phaseDuration):
    trace._sendIntCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PHASE_DURATION, tlsID, int(1000*phaseDuration))
def setPhase(tlsID, index):
    trace._sendIntCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PHASE_INDEX, tlsID, index)
Exemple #5
0
def setSignals(vehID, signals):
    trace._sendIntCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SIGNALS, vehID, signals)
def setSignals(vehID, signals):
    trace._sendIntCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SIGNALS, vehID,
                      signals)