diff --git a/_sources/lib/Display.rst.txt b/_sources/lib/Display.rst.txt new file mode 100644 index 0000000..6701845 --- /dev/null +++ b/_sources/lib/Display.rst.txt @@ -0,0 +1,23 @@ +.. _lib_display: + +Display +******* + +Class Documentation +==================== + +.. autoclass:: compLib.Display.Display + :members: + +Examples +========= + +Write a line to the display +--------------------------- + +.. code-block:: python + + import time + from compLib.Display import Display + + Display.write(1, "Hello World!") \ No newline at end of file diff --git a/_sources/lib/Encoder.rst.txt b/_sources/lib/Encoder.rst.txt new file mode 100644 index 0000000..1d5bf30 --- /dev/null +++ b/_sources/lib/Encoder.rst.txt @@ -0,0 +1,10 @@ +.. _lib_encoder: + +Encoder +******* + +Class Documentation +==================== + +.. autoclass:: compLib.Encoder.Encoder + :members: diff --git a/_sources/lib/IRSensor.rst.txt b/_sources/lib/IRSensor.rst.txt index 26332b9..b1dd232 100644 --- a/_sources/lib/IRSensor.rst.txt +++ b/_sources/lib/IRSensor.rst.txt @@ -16,7 +16,5 @@ Testing analog sensors from compLib import IRSensor - ir = IRSensor.IRSensor() - while True: - print ("left: {} middle: {} right: {}".format(ir.bottom_left_analog(), ir.bottom_middle_analog(), ir.bottom_right_analog())) \ No newline at end of file + print ("left: {} middle: {} right: {}".format(IRSensor.read(1), IRSensor.read(3), IRSensor.read(5))) \ No newline at end of file diff --git a/_sources/lib/Motor.rst.txt b/_sources/lib/Motor.rst.txt index 5febcfe..e5d6854 100644 --- a/_sources/lib/Motor.rst.txt +++ b/_sources/lib/Motor.rst.txt @@ -19,5 +19,5 @@ Driving straight (maybe) from compLib.Motor import Motor - for port in range(0, 4): - Motor.power(port, 50) \ No newline at end of file + Motor.power(1, 50) + Motor.power(2, 50) \ No newline at end of file diff --git a/genindex.html b/genindex.html index 22e7db9..05541e5 100644 --- a/genindex.html +++ b/genindex.html @@ -84,10 +84,9 @@
- |
- | - |
+ |
- | - |
- |
- |
- |
- |
compLib.Api.
Seeding
¶Class used for communicating with seeding api
-get_park
() → Tuple[Dict, int]¶Get a parkingsapce from the api.
-Json Object and status code as returned by the api.
-Tuple[Dict, int]
-pay_park
() → int¶Pay for parking.
-Status code as returned by the api.
-int
-simon_says
() → Tuple[Dict, int]¶Get next simon says zone from the api.
-Json Object and status code as returned by the api.
-Tuple[Dict, int]
-compLib.Api.
DoubleElim
¶Class used for communicating with double elimination api
-get_goal
() → Tuple[compLib.Api.Position, int]¶Get position of the goal
-A Position object with x and y coordinates of the goal, rotation is always -1
-Tuple[Position, int]
-get_items
() → Tuple[List[Dict], int]¶Get a list with all current items
-A list will all items currently on the game field. Items are dictionaries that look like: {“id”: 0, “x”: 0, “y”: 0}
-Tuple[List[Dict], int]
-get_opponent
() → Tuple[compLib.Api.Position, int]¶Get position of the opponents robot
-A Position object with opponents robot position
-Tuple[Position, int]
-get_position
() → Tuple[compLib.Api.Position, int]¶Get position of the robot
-A Position object with robot position
-Tuple[Position, int]
-get_scores
() → Tuple[Dict, int]¶Get the current scores
-A dictionary with all scores included like: {“self”:2,”opponent”:0}
-Tuple[Dict, int]
-