Permalink
Browse files

added default params to constructor

  • Loading branch information...
Simon Monk Simon Monk
Simon Monk authored and Simon Monk committed Oct 22, 2015
1 parent 64fd786 commit 55febacf760b4ec1ca4a08285ef4f41f4817d7a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/rrb3.py
View
@@ -30,7 +30,7 @@ class RRB3:
old_left_dir = -1
old_right_dir = -1
def __init__(self, battery_voltage, motor_voltage, revision=2):
def __init__(self, battery_voltage=9.0, motor_voltage=6.0, revision=2):
self.pwm_scale = float(motor_voltage) / float(battery_voltage)

0 comments on commit 55febac

Please sign in to comment.