<s> from __future__ import print_function <EOL> from sparki_learning import * <EOL> print ( "<STR_LIT>" ) <EOL> init ( "<STR_LIT>" ) <EOL> print ( "<STR_LIT>" + getName ( ) ) <EOL> print ( "<STR_LIT>" ) <EOL> forward ( <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> print ( "<STR_LIT>" ) <EOL> backward ( <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> print ( "<STR_LIT>" ) <EOL> motors ( - <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> print ( "<STR_LIT>" ) <EOL> beep ( ) <EOL> print ( "<STR_LIT>" ) <EOL> motors ( <NUM_LIT:1> , - <NUM_LIT:1> , <NUM_LIT:1> ) <EOL> print ( "<STR_LIT>" + str ( getBattery ( ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLight ( LIGHT_SENS_LEFT ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLight ( LIGHT_SENS_MID ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLight ( LIGHT_SENS_RIGHT ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLine ( LINE_EDGE_LEFT ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLine ( LINE_MID_LEFT ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLine ( LINE_MID ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLine ( LINE_MID_RIGHT ) ) ) <EOL> print ( "<STR_LIT>" + str ( getLine ( LINE_EDGE_RIGHT ) ) ) <EOL> print ( "<STR_LIT>" + str ( getAccelX ( ) ) ) <EOL> print ( "<STR_LIT>" + str ( getAccelY ( ) ) ) <EOL> print ( "<STR_LIT>" + str ( getAccelZ ( ) ) ) <EOL> print ( "<STR_LIT>" + str ( getMagX ( ) ) ) <EOL> print ( "<STR_LIT>" + str ( getMagY ( ) ) ) <EOL> print ( "<STR_LIT>" + str ( getMagZ ( ) ) ) <EOL> print ( "<STR_LIT>" + str ( compass ( ) ) ) <EOL> print ( "<STR_LIT>" ) <EOL> turnRight ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> print ( "<STR_LIT>" ) <EOL> wait ( <NUM_LIT:5> ) <EOL> print ( "<STR_LIT>" ) <EOL> turnLeft ( <NUM_LIT:1> , <NUM_LIT:2> ) <EOL> print ( "<STR_LIT>" ) <EOL> gripperOpen ( ) <EOL> print ( "<STR_LIT>" ) <EOL> gripperClose ( ) <EOL> print ( "<STR_LIT>" ) <EOL> turnBy ( <NUM_LIT> ) <EOL> print ( "<STR_LIT>" ) <EOL> turnBy ( - <NUM_LIT> ) <EOL> print ( "<STR_LIT>" ) <EOL> turnTo ( <NUM_LIT:0> ) <EOL> print ( "<STR_LIT>" ) <EOL> for i in range ( <NUM_LIT:0> , <NUM_LIT> , <NUM_LIT:5> ) : <EOL> wait ( <NUM_LIT> ) <EOL> setLEDBack ( i ) <EOL> print ( "<STR_LIT>" ) <EOL> for i in range ( <NUM_LIT:100> , - <NUM_LIT:1> , - <NUM_LIT:5> ) : <EOL> wait ( <NUM_LIT> ) <EOL> setLEDBack ( i ) <EOL> print ( "<STR_LIT>" ) </s>
