-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathautonomous.py
38 lines (23 loc) · 914 Bytes
/
autonomous.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
from roboclaw import RoboClaw
import rospy
#----------------------------------------------------
class Drive:
def __init__(self,driver1,driver2):
self.rightClaw = driver1
self.leftClaw = driver2
def drive_callback(self,inp):
# A bit of help! These are arrays of data
axes = inp.axes
buttons = inp.buttons
"""TODO - INSERT YOUR CODE HERE
Problem Statement: Insert Code here to make the rover move
forwards, backwards, left, right according to input given
"""
def current_limiter(self):
"""BONUS:
Try to implement this function as well. It is a saftey feature.
How would you decide the current threshold? - Please elaborate
"""
return False
#---------------------------------------------------