Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
[RUNTIME] Changes Params for Team Flag LEDs (#262)
Browse files Browse the repository at this point in the history
Change valid params for team flag status LEDs from s1-s4 to led1-led4 to reflect JSON file.
Updates Hibike README to reflect this reality
  • Loading branch information
bodiddles authored Mar 11, 2017
1 parent f98647a commit aaba7a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions hibike/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ Device Type Enumeration:
| 0x05 | TeamFlag | 0 | mode | bool | yes | yes |
| | | 1 | blue | bool | yes | yes |
| | | 2 | yellow | bool | yes | yes |
| | | 3 | s1 | bool | yes | yes |
| | | 4 | s2 | bool | yes | yes |
| | | 5 | s3 | bool | yes | yes |
| | | 6 | s3 | bool | yes | yes |
| | | 3 | led1 | bool | yes | yes |
| | | 4 | led2 | bool | yes | yes |
| | | 5 | led3 | bool | yes | yes |
| | | 6 | led4 | bool | yes | yes |
| 0x06 | Grizzly | | | | | |
| 0x07 | ServoControl | 0 | servo0 | float | yes | yes |
| | | 1 | servo1 | float | yes | yes |
Expand Down
10 changes: 5 additions & 5 deletions runtime/testy/studentAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_value(self, name, gamepad_number=0):

class Robot(StudentAPI):
deviceName_to_writeParams = {
"TeamFlag" : ["s1", "s2", "s3", "s4"],
"TeamFlag" : ["led1", "led2", "led3", "led4"],
"ServoControl" : ["servo0", "servo1"],
"YogiBear" : ["duty_cycle", "pid_pos_setpoint", "pid_pos_kp", "pid_pos_ki", "pid_pos_kd", "current_thresh", "enc_pos"],
}
Expand All @@ -102,10 +102,10 @@ class Robot(StudentAPI):
"pid_pos_kd" : [(float, int), 0, float("inf")],
"current_thresh" : [(float, int), 2, 10],
"enc_pos" : [(float, int), 0, 0],
"s1" : [(bool,)],
"s2" : [(bool,)],
"s3" : [(bool,)],
"s4" : [(bool,)],
"led1" : [(bool,)],
"led2" : [(bool,)],
"led3" : [(bool,)],
"led4" : [(bool,)],
}

def __init__(self, toManager, fromManager):
Expand Down

0 comments on commit aaba7a2

Please sign in to comment.