Last active
May 31, 2019 13:40
-
-
Save pavelaron/5810ec32e233e7f759ba20583c6045eb to your computer and use it in GitHub Desktop.
Skeleton file for Revvy robot_lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Control: | |
def terminate_program(): | |
pass | |
def terminate_all(): | |
pass | |
def get_global_timer(): | |
pass | |
class Motor: | |
DIRECTION_FWD = 0 | |
DIRECTION_LEFT = 1 | |
DIRECTION_RIGHT = 2 | |
DIRECTION_BACK = 3 | |
UNIT_ROT = 4 | |
UNIT_SEC = 5 | |
UNIT_SPEED_RPM = 6 | |
UNIT_SPEED_PWR = 7 | |
DIR_CW = 8 | |
DIR_CCW = 9 | |
UNIT_DEG = 10 | |
UNIT_ROT = 11 | |
UNIT_SEC = 12 | |
ACTION_STOP_AND_HOLD = 13 | |
ACTION_RELEASE = 14 | |
def drive(direction, rotation, unit_rotation, speed, unit_speed): | |
pass | |
def motor(name, direction, rotation, unit_rotation, speed, unit_speed): | |
pass | |
def stop(name, action): | |
pass | |
def stop_all(action): | |
pass | |
class Sensor: | |
TILT_FWD = 0 | |
TILT_LEFT = 1 | |
TILT_RIGHT = 2 | |
TILT_BACK = 3 | |
def get_ultrasonic_value(): | |
pass | |
def get_bumper_pressed_state(): | |
pass | |
def get_tilt_state(direction): | |
pass | |
class Sound: | |
OCTAVE_1 = 0 | |
OCTAVE_2 = 1 | |
OCTAVE_3 = 2 | |
OCTAVE_4 = 3 | |
OCTAVE_5 = 4 | |
OCTAVE_6 = 5 | |
OCTAVE_7 = 6 | |
OCTAVE_8 = 7 | |
OPTION_C = 8 | |
OPTION_CS = 9 | |
OPTION_D = 10 | |
OPTION_DS = 11 | |
OPTION_E = 12 | |
OPTION_F = 13 | |
OPTION_FS = 14 | |
OPTION_G = 15 | |
OPTION_GS = 16 | |
OPTION_A = 17 | |
OPTION_AS = 18 | |
OPTION_B = 19 | |
def play_note(octave, key): | |
pass | |
def play_tune(tune_name): | |
pass | |
def stop_playback(): | |
pass | |
class Light: | |
def set(led_index, color): | |
pass | |
def set_multi(leds, color): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment