446 Commits
Author SHA1 Message Date
Morgan Garcia f66af0d424 Update moza.c
moza_update function

Updated variable name to perctflt and changed the value to multiply the quotient of rpm/maxrpm by 100.

Made int perct variable to round perctflt to nearest whole number.

Updated LED activation ranges so that all 10 LEDs get activated when given rpm percentage is reached.
2025-07-29 20:43:49 -04:00
Morgan Garcia 477fcd9c6c Update gameloop.c
Reverted back to default from Spacefreak18 source now that I've tested and gotten the LEDs working.
2025-07-29 20:43:49 -04:00
Morgan Garcia f853cd9f79 Update gameloop.c
Text output update
2025-07-29 20:43:49 -04:00
Morgan Garcia 924354afa1 Update moza.c
Fixed error in BIT number increasing.
2025-07-29 20:43:49 -04:00
Morgan Garcia 409a6b7707 Update gameloop.c
Comment out normal LED test.

Added test for quicker push to the wheel for troubleshooting.
2025-07-29 20:43:49 -04:00
Morgan Garcia d59e46cc64 Update moza.c
moza_update values updated for LED test.

MOZA_PAYLOAD_SIZE added per update from Spacefreak18
2025-07-29 20:43:49 -04:00
Morgan Garcia ba4c96a3f0 Update moza.c
Updated MOZA_SERIAL_TEMPLATE[3] from 0x17 to 0x13 which fixed communication issues with the device.
2025-07-29 20:43:49 -04:00
Paul Dino Jones f5a2b38ee2 Bump to latest simapi for unix timestamp ticks. Push unix timestamp ticks to lua variable. Update test logic to test on 8000 rpms. Update example lua scripts with examples of led rpm blink. 2025-07-15 16:39:41 -04:00
Paul Dino Jones 59d2ff935f fix serial receiving 2025-07-14 00:15:47 -04:00
Paul Dino Jones 34b258ab1b fix misleading log message 2025-06-16 13:19:13 -04:00
Paul Dino Jones 9261123491 accept usbwheel for wheel on usb devices in config 2025-06-16 13:02:34 -04:00
Oleg Makarenko 73c59f5b29 Add Simagic GT Neo to the udev rules, opening hidraw 2025-06-15 22:59:41 -04:00
Oleg Makarenko aaf0e4b6bc Add lua config for Simagic GT Neo 2025-06-15 22:59:41 -04:00
Oleg Makarenko 6d5b34f4b9 Add GT Neo LED update feature 2025-06-15 22:59:41 -04:00
Paul Dino Jones e5cee3c228 update to latest simapi for lmu support 2025-06-14 19:11:44 -04:00
Paul Dino Jones 9edd275984 Update to latest simapi for improvements to tyre diameter detection 2025-04-30 19:07:05 -04:00
Paul Dino Jones af060ff574 update to latest simapi to fix detecting diameters while simd is running 2025-04-29 00:01:39 -04:00
Paul Dino Jones ab956af9cb fix code around generating diameters config 2025-04-29 00:00:58 -04:00
Paul Dino Jones f81588a2a5 Re-enable shared memory test prog 2025-04-28 20:38:34 -04:00
Mon ouïe 808be1aec0 Add udev rule for Simagic P1000 support 2025-04-21 14:09:46 -04:00
Mon ouïe 3733261647 Fix HID send report commands for Simagic P1000 Haptic modules 2025-04-21 14:09:46 -04:00
Paul Dino Jones 1a1ede9f4b add function to expand tilde and expand tilde on device specific config files 2025-04-07 10:56:38 -04:00
Paul Dino Jones a3d0cbcb43 small cleanup to fix memory leaks 2025-04-07 10:56:38 -04:00
Paul Dino Jones c0680515ae add -c for specified config file option 2025-04-07 10:56:38 -04:00
Paul Dino Jones cd5be23235 fix issue with freeing lua file on cammus c12 2025-03-27 17:12:23 -04:00
Paul Dino Jones af37299d25 Add extra log information on revburner 2025-03-27 15:52:51 -04:00
Paul Dino Jones 8a2ce50187 improvements for cammus c12 2025-03-27 15:38:35 -04:00
Paul Dino Jones dbe6908386 fix arduino lua device free 2025-03-27 14:47:34 -04:00
Paul Dino Jones 51cc376eb9 Temporarily remove feature to ignore reattempting to open a serial device after it had failed once. Increase number of allowed serial device blocks to 20. 2025-03-27 01:51:37 -04:00
Paul Dino Jones 415526c4d3 Move release of serial adapter to before underlying device is released 2025-03-26 18:25:26 -04:00
Paul Dino Jones 52f5c824f8 Fix some pulseaudio stuff 2025-03-26 17:35:05 -04:00
Paul Dino Jones ce200b8d21 Improve logging over device specific configs 2025-03-26 16:41:18 -04:00
Paul Dino Jones e110ac50d2 remove debug build hardcode 2025-03-26 15:20:43 -04:00
Paul Dino Jones d589147552 actually pass the config file around 2025-03-26 15:16:04 -04:00
Paul Dino Jones d9cdd18bf9 Move device specific config file test to more logical spot 2025-03-26 15:01:06 -04:00
Paul Dino Jones 4db0f6dff1 Fix tachometer config 2025-03-26 13:03:50 -04:00
Paul Dino Jones a290a346cb Fix leak in arduino lua 2025-03-26 12:35:16 -04:00
Paul Dino Jones 4fd2658a98 Remove log entries 2025-03-26 11:58:39 -04:00
Paul Dino Jones 79f0ceff28 Cleanup pulseaudio code 2025-03-26 11:58:05 -04:00
Paul Dino Jones fdd5f0b7ba Fix leak in xdglib 2025-03-26 11:57:40 -04:00
Paul Dino Jones 0d29fd7005 fix leak in config 2025-03-26 11:56:31 -04:00
Paul Dino Jones b68af9c8b9 fix leak in cammus c12 2025-03-26 11:56:04 -04:00
Paul Dino Jones 12570f5caf fix leak in wheel device 2025-03-26 11:55:43 -04:00
Paul Dino Jones 4a0c33d5a5 Fix leak in serial adapter 2025-03-26 11:55:18 -04:00
Paul Dino Jones 831a9d00e1 Fix segfault freeing cammus c12 2025-03-25 14:57:52 -04:00
Paul Dino Jones 2b2ae31907 Rename to car radar.lua 2025-03-25 14:03:58 -04:00
Paul Dino Jones 593a415cd9 fix colors 2025-03-25 13:54:16 -04:00
Paul Dino Jones a4acbf5cc7 Fix off by one on rgb math 2025-03-25 13:52:22 -04:00
Paul Dino Jones e92ba3dd25 Add example for cars alongside 2025-03-25 13:25:11 -04:00
Paul Dino Jones e78fa76e1b Add flags to test loop 2025-03-25 12:57:55 -04:00