Skip to content

Commit

Permalink
Fix steering wheel display for Cammus
Browse files Browse the repository at this point in the history
  • Loading branch information
berarma committed Mar 4, 2024
1 parent 0d5782e commit 4bba417
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oversteer/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ def normalize_event(self, event):
event.value = event.value * 64
elif self.usb_id in [wid.LG_SFW, wid.LG_MOMO, wid.LG_MOMO2, wid.LG_DF, wid.LG_DFP, wid.LG_DFGT, wid.LG_G25, wid.LG_G27]:
event.value = event.value * 4
elif self.vendor_id == wid.VENDOR_CAMMUS:
event.value = event.value + 32768
elif self.usb_id in [wid.LG_WFG, wid.LG_WFFG, wid.LG_SFW, wid.LG_MOMO, wid.LG_MOMO2, wid.LG_DF, wid.LG_DFP,
wid.LG_DFGT, wid.LG_G920]:
if event.code == ecodes.ABS_Y:
Expand Down

1 comment on commit 4bba417

@spikerguy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @berarma

This patch fixes the wheel range issue.

Please sign in to comment.