Commit Graph
100 Commits
Author SHA1 Message Date
Paul Dino Jones 56e0d71893 Put default configs closer to the bottom 2024-09-04 16:22:36 -04:00
Paul Dino Jones f962bfa8ef Fix some issues with config loading 2024-09-04 16:15:34 -04:00
Paul Dino Jones c257222509 Add ability to specify baud rate in config file 2024-09-04 12:56:02 -04:00
Paul Dino Jones 723d2e6463 Update loop to 60fps. Update some arduino devices to 115200. Refactor shiftlights code for performance. 2024-09-04 12:16:21 -04:00
Paul Dino Jones 63fe5007b7 Updated config example to support profiles 2024-09-03 16:59:48 -04:00
Paul Dino Jones ce2049a552 Update CMake so project build 2024-09-02 13:24:34 -04:00
Paul Dino Jones 4913e6b8ae Updated to latest simapi 2024-09-02 13:20:28 -04:00
Paul Dino Jones b8df16dd67 Added link to Linux Sim Racing Matrix space 2024-09-02 12:50:06 -04:00
Paul Dino Jones ca17d84c0c Added arch linux PKGBUILD 2024-09-02 12:47:17 -04:00
Paul Dino Jones 820bdaa15a Update to latest simapi 2024-09-02 12:40:40 -04:00
Paul Dino Jones 644cc95ac2 Updated to latest simapi 2024-09-02 12:09:18 -04:00
Paul Dino Jones e25fa700d1 Initialize some data so tyre diameter detection works, and motors spin down. 2024-09-02 11:15:19 -04:00
Paul Dino Jones a1c26b4228 Set gameloop to 8fps for now to avoid issues 2024-09-02 11:13:19 -04:00
Paul Dino Jones c7b3607e33 Improving loop management to prevent double freeing. Fixing other memory issues 2024-09-02 10:43:36 -04:00
Paul Dino Jones 235d4257d4 making log statement more accurate 2024-08-31 16:14:33 -04:00
Paul Dino Jones 7c8273bcde Move some things around and add another indicator to prevent double frees 2024-08-31 16:02:34 -04:00
Paul Dino Jones 15d18bbe8f Fix log statement so it actual outputs the amount of slip 2024-08-31 16:02:04 -04:00
Paul Dino Jones 7c0e17342e Major overhault to add libuv event loop. Enhancements to config file to support profiles. 2024-08-30 13:46:56 -04:00
Paul Dino Jones 8f59254c67 update to latest simapi 2024-08-12 23:50:18 -04:00
Paul Dino Jones d97e919d7c Update to latest simapi to fix gear in truck sims 2024-08-11 23:48:00 -04:00
Paul Dino Jones 49b0d764c9 Add SCS Truck Sim support 2024-08-11 23:28:29 -04:00
Paul Dino Jones 7714c2cb8e Move from libusb to hidraw backend hid api 2024-08-11 20:12:27 -04:00
Paul Dino Jones cb39d17b22 Refactored wheel diameters config logic 2024-08-08 21:19:52 -04:00
Paul Dino Jones fedbf473bb Set useconfig before initializing devices 2024-08-08 15:02:55 -04:00
Paul Dino Jones d62e4c7d1b Fixing issue with diameters file. Disabling diameters config checking during monocoque test. Additonal logging 2024-08-08 00:28:54 -04:00
Paul Dino Jones 89e49353e4 setting uninitialized values on sound devices 2024-08-08 00:28:03 -04:00
Paul Dino Jones 007a786c14 No longer abort on one failed write to a serial device. Log error instead. 2024-08-06 16:45:29 -04:00
Paul Dino Jones e194642d6e Add Reverse for Cammus C5 2024-08-06 10:06:49 -04:00
Paul Dino Jones 9eb1cd75b0 Update gameloop so it sets gear to neutral on shutdown. Add enum for gears. 2024-08-06 10:06:24 -04:00
Paul Dino Jones ae9293ba08 Fix issue with bad data being send to cammus wheel on quit 2024-08-05 17:08:23 -04:00
Paul Dino Jones 5b24faa7f1 Fix include paths 2024-08-05 17:07:04 -04:00
Paul Dino Jones cf61b8a4e5 Add more logging for cammus 2024-08-05 16:43:47 -04:00
Paul Dino Jones df199b5f5c clear bytes on each update 2024-08-05 16:31:58 -04:00
Paul Dino Jones ca4f1654fa Fix gear 2024-08-05 16:18:51 -04:00
Paul Dino Jones 622e46a42f Using correct pid for cammus 2024-08-05 16:11:29 -04:00
Paul Dino Jones d5c0c485cf Small fixes for speed and gear 2024-08-05 16:10:15 -04:00
Paul Dino Jones c983cb2b4e rpm margin must return as an integer 2024-08-05 14:49:32 -04:00
Paul Dino Jones 8d04c3aa04 Initial attempt at adding support CammusC5 wheel with underlying code for future wheels. 2024-08-05 13:42:17 -04:00
Paul Dino Jones 270a075292 Reverse regression in previous commit 2024-08-04 17:07:09 -04:00
Paul Dino Jones c36658e0e1 Refactor motor haptic effect slightly. Add logging. 2024-08-04 14:58:01 -04:00
Paul Dino Jones e4634721a1 Pull in and use latest simapi 2024-07-28 19:02:40 -04:00
Paul Dino Jones 2129299f5f Start sound devices with frequency set to 0 to avoid loud start ups 2024-07-28 11:18:41 -04:00
Paul Dino Jones 3fc3ce3ea0 Fix small buffer overflow on the diameters file string 2024-07-28 11:00:26 -04:00
Paul Dino Jones 254c891528 Update to latest simapi to fix issues with file descriptors 2024-07-28 02:23:45 -04:00
Paul Dino Jones 0c74666409 Add more logging for mem freeing 2024-07-28 02:08:18 -04:00
Paul Dino Jones 82c45f1bca update to latest simapi to bypass wrong behavior 2024-07-28 02:06:44 -04:00
Paul Dino Jones bb5c2069c9 Added extra logging. Added code to free mapped memory and file descriptors 2024-07-27 20:32:09 -04:00
Paul Dino Jones ac749cebfa Fix issue with tyre effects on sound devices 2024-07-27 20:09:24 -04:00
Paul Dino Jones e125b33a85 update to latest simapi 2024-07-27 19:51:17 -04:00
Paul Dino Jones 6e041152a2 More support for beyond stereo 2024-07-22 21:45:57 -04:00
Paul Dino Jones 6945b026e9 Better handle volume math 2024-07-20 20:15:16 -04:00
Paul Dino Jones b7c5e1a9fa Updated readme with some instructions on bass shakers 2024-07-20 16:39:53 -04:00
Paul Dino Jones 178c16b0d7 Add ability to use sound cards with more than 2 channels. 2024-07-20 16:31:17 -04:00
Paul Dino Jones 5dcc69b2a2 Updated slog dependency 2024-07-17 17:30:00 -04:00
Paul Dino Jones dea445cafa Added log statement for ampfactor 2024-07-13 14:46:36 -04:00
Paul Dino Jones db83fc9aca Add ampfactor to control final motor power 2024-07-13 14:21:35 -04:00
Paul Dino Jones 234cf064a3 Add abs brake test 2024-07-13 12:48:05 -04:00
Paul Dino Jones b4742a2a8a Cleanup and fix issue that could cause abs to not work. 2024-07-13 11:36:21 -04:00
Paul Dino Jones befe49fd5c Set the fallback threshold for tyre slip effects to zero 2024-07-13 09:40:27 -04:00
Paul Dino Jones 67e04257ba Update so multiple defined serial haptic effects do not conflict with eachother. 2024-07-13 09:38:00 -04:00
Paul Dino Jones 813308c20f Fix issues with data not being correctly sent to motors for sim haptic. 2024-07-12 20:42:55 -04:00
Paul Dino Jones bfcb578bb1 Fix dumb issues with haptic arduino code. Add tyre slip vibrations to test script. 2024-07-09 17:14:40 -04:00
Paul Dino Jones 793d5b6f16 Add sim haptic arduino logic and config variables 2024-07-09 15:46:51 -04:00
Paul Dino Jones 411c8c5340 Move haptic effect data into it's own structure. 2024-07-03 19:18:39 +00:00
Paul Dino Jones f8237798a7 Add haptic effect to serial haptic device type 2024-07-01 22:45:54 +00:00
Paul Dino Jones dfbd2542b4 Add basic support for arduino haptic motors 2024-07-01 15:23:46 +00:00
Paul Dino Jones 8acd05f4c7 Improve handling of devices referenced in config but not actually able to be used for some reason 2024-06-27 20:20:13 +00:00
Paul Dino Jones 0df46cff76 Refactor diameter save file into libconfig to save a dependency. 2024-06-11 16:42:29 -04:00
Paul Dino Jones 1e1dbb9f2e Updated config file example 2024-06-11 10:53:26 -04:00
Paul Dino Jones 16b81fcc98 Send string around for diameters file 2024-06-11 14:41:30 +00:00
Paul Dino Jones 92f48d3bb0 Fix some issues with pulseaudio not stopping properly. 2024-06-11 14:29:09 +00:00
Paul Dino Jones 9a576ed19d Add support for save file for tyre diameters 2024-06-10 00:46:11 +00:00
Paul Dino Jones 424c691b2a Update to latest simapi 2024-06-10 00:45:21 +00:00
Paul Dino Jones 676fb8047f Initialize tyre diameters 2024-06-10 00:44:51 +00:00
Paul Dino Jones 1d49673804 Remove need to specify values for usb pedal rumble effects. 2024-06-07 17:40:53 +00:00
Paul Dino Jones c846e7517b Add attempt at ABS effect. Small refactorings 2024-06-07 04:21:08 +00:00
Paul Dino Jones 4c3318bfe8 Use correct sysfs path for csl elite v3 pedals 2024-06-07 03:02:53 +00:00
Paul Dino Jones fdf06503db Refactor implementation of CSL Elite V3 Pedals 2024-06-06 21:42:08 +00:00
Paul Dino Jones 0e4bac6885 Refactor tyre effects to take threshold input from config file. Spell threshold correctly. 2024-06-05 04:21:39 +00:00
Paul Dino Jones 5744276a94 Update valgrindrc to ignore libs outside project 2024-06-05 04:20:23 +00:00
Paul Dino Jones f393327a87 Refactor effects into separate module 2024-06-05 03:43:48 +00:00
Paul Dino Jones 2f8b40be9f Refactored tyre slip calculations 2024-06-03 18:42:16 -04:00
Paul Dino Jones 05da884e6b Update to latest simapi to support new tyre slip calculations. 2024-06-03 18:40:50 -04:00
Paul Dino Jones bd6176fbcb Cleanup tyre locking implementation 2024-06-01 18:07:37 +00:00
Paul Dino Jones 7ca5371bf2 Implement tyre locking. Cleanup test gameloop 2024-05-30 20:39:47 +00:00
Paul Dino Jones f62a67c778 Update to latest submodule 2024-05-30 18:27:41 +00:00
Paul Dino Jones 364d4be558 Fix tachometer config error handling 2024-05-30 18:25:47 +00:00
Paul Dino Jones d7498e86cb Fix wheel slip calculations 2024-05-30 18:03:26 +00:00
Paul Dino Jones e3a98b6284 Fix compilation error on portaudio codepath 2024-05-30 17:25:07 +00:00
Paul Dino Jones 1b2256abce Add usbhaptic support 2024-05-30 17:07:44 +00:00
Paul Dino Jones 30f34a5d8f Add wheelslip and abs to test loop 2024-05-28 16:12:48 +00:00
Paul Dino Jones d6ef631d06 Updated to latest simapi 2024-03-09 13:39:12 -05:00
Paul Dino Jones d4f32881ab Updated to latest simapi 2024-03-09 13:36:18 -05:00
Paul Dino Jones 3863acde71 Fix wrong data type for velocity 2024-03-05 17:23:29 -05:00
Paul Dino Jones fb1925be2d Fix compilation issue for wheel slip 2024-03-05 00:36:34 -05:00
Paul Dino Jones 83ffb32a2d Fix compilation issues for arduino devices 2024-03-05 00:34:29 -05:00
Paul Dino Jones 6963c377dc Refactored serial arduino devices. Created custom structs for sending data to arduino devices. 2024-03-05 04:51:49 +00:00
Paul Dino Jones 4cb5ecf4f4 Added preliminary support for tyre slip and abs vibrations 2024-02-29 19:19:57 +00:00
Paul Dino Jones 0ca123d027 Fixed simapi version 2024-02-28 14:10:13 -05:00
Paul Dino Jones 3acf5eb716 Add makefiles for arduino and related documentation 2024-02-27 17:36:02 -05:00