diff --git a/README.md b/README.md index 4f597ec..0df98f7 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ while 1: ## Read - ### Pedals/Steering | Pedal | Value Range | Neutral Position | @@ -69,7 +68,6 @@ while 1: | `back` | 0/1 | | `PS` | 0/1 | - ## Write | Method Name | Default Parameters | Parameter Types | @@ -82,14 +80,11 @@ while 1: | `autocenter_off` | None | None | | `force_off` | `slot=0xf3` | `slot`: hexadecimal | - - ## Sources - Commands based on nightmode's [logitech-g29](https://github.com/nightmode/logitech-g29) node.js driver. - Interface uses libhidapi ctype bindings from apmorton's [pyhidapi](https://github.com/apmorton/pyhidapi). - ## Support Only Logitech G29 Driving Force Racing Wheels & Pedals kit supported on linux in ps3 mode. diff --git a/g29py/g29.py b/g29py/g29.py index 9edf4f6..8196868 100644 --- a/g29py/g29.py +++ b/g29py/g29.py @@ -49,15 +49,12 @@ def __init__(self): log.debug(f'Product: {device.product}') self.device = device - def connect(self): - self.pump() # load cache - self.reset() - + # TODO(seanp): Why is reset not working? def reset(self): # wheel calibration self.device.write(bytes([0xf8, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00])) self.device.write(bytes([0xf8, 0x09, 0x05, 0x01, 0x01, 0x00, 0x00])) - time.sleep(10) # wait for calibration + time.sleep(5) # wait for calibration # WRITE