Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Mar 6, 2024
1 parent 9eabf38 commit c22e972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ while 1:

## Read


### Pedals/Steering

| Pedal | Value Range | Neutral Position |
Expand Down Expand Up @@ -69,7 +68,6 @@ while 1:
| `back` | 0/1 |
| `PS` | 0/1 |


## Write

| Method Name | Default Parameters | Parameter Types |
Expand All @@ -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.
Expand Down
7 changes: 2 additions & 5 deletions g29py/g29.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c22e972

Please sign in to comment.