Beispiel #1
0
def waitForTarget():
    while (gpg.read_enc_status() != 0):
        sleep(0.1)
def wait_till_encoder_target_reached():

    time.sleep(SLEEP_TIME_BETWEEN_STEPS)
    while gopigo.read_enc_status() != ENCODER_TARGET_REACHED:
        time.sleep(SLEEP_TIME_BETWEEN_STEPS)
def wait_till_encoder_target_reached():

	time.sleep(SLEEP_TIME_BETWEEN_STEPS)
	while gopigo.read_enc_status() != ENCODER_TARGET_REACHED:
		time.sleep(SLEEP_TIME_BETWEEN_STEPS)
Beispiel #4
0
def read_enc_status(kargs):
    r = {'return_value': gopigo.read_enc_status()}
    return r