Paul Dino Jones
|
b380d44521
|
Cleanup pulseaudio code
|
2025-03-26 11:58:05 -04:00 |
Paul Dino Jones
|
02699d3c47
|
Fix leak in xdglib
|
2025-03-26 11:57:40 -04:00 |
Paul Dino Jones
|
66886b4d7e
|
fix leak in config
|
2025-03-26 11:56:31 -04:00 |
Paul Dino Jones
|
0d9a171193
|
fix leak in cammus c12
|
2025-03-26 11:56:04 -04:00 |
Paul Dino Jones
|
4382e2f71f
|
fix leak in wheel device
|
2025-03-26 11:55:43 -04:00 |
Paul Dino Jones
|
7bf2f8b28f
|
Fix leak in serial adapter
|
2025-03-26 11:55:18 -04:00 |
Paul Dino Jones
|
5ed23d1cba
|
Fix segfault freeing cammus c12
|
2025-03-25 14:57:52 -04:00 |
Paul Dino Jones
|
f0d501370e
|
Fix off by one on rgb math
|
2025-03-25 13:52:22 -04:00 |
Paul Dino Jones
|
1a22c10b06
|
Add flags to test loop
|
2025-03-25 12:57:55 -04:00 |
Paul Dino Jones
|
ccae4c5f89
|
Do not write to rpm leds on cammus c12
|
2025-03-25 12:31:00 -04:00 |
Paul Dino Jones
|
46cb401e6b
|
Always write to led
|
2025-03-25 10:09:39 -04:00 |
Paul Dino Jones
|
7afd7f12ed
|
Huge refactor to improve memory efficiency mostly around pulseaudio
|
2025-03-25 10:04:39 -04:00 |
Paul Dino Jones
|
e0d9c78f60
|
Remove some unnecessary variables from lua variable setup
|
2025-03-25 10:04:14 -04:00 |
Paul Dino Jones
|
a26ee4da2f
|
Properly release lua if it is used on cammus
|
2025-03-25 10:03:38 -04:00 |
Paul Dino Jones
|
4ed25d7112
|
Fix logging spam
|
2025-03-24 16:43:09 -04:00 |
Paul Dino Jones
|
88db6c5f04
|
Fix segfaults on device specific config files
|
2025-03-24 15:58:37 -04:00 |
Paul Dino Jones
|
c3a88f3b07
|
Fix issue with serial devices opening when they have already failed once
|
2025-03-24 15:57:50 -04:00 |
Paul Dino Jones
|
22a41d1ddb
|
Fix issue with not found configs
|
2025-03-24 14:22:20 -04:00 |
Paul Dino Jones
|
ed671ecedc
|
Fix off by one error. Fix log format
|
2025-03-24 14:07:16 -04:00 |
Paul Dino Jones
|
7c8ebb0984
|
Increase cammus c12 leds
|
2025-03-24 13:22:45 -04:00 |
Paul Dino Jones
|
f7e92083f2
|
Make sure leds clear each time
|
2025-03-24 12:13:39 -04:00 |
Paul Dino Jones
|
22930163ec
|
Fix to use lua on c12 if lua script loads properly
|
2025-03-24 12:05:49 -04:00 |
Paul Dino Jones
|
b776e05f66
|
Fix issue with arduino leds not clearing
|
2025-03-24 11:44:44 -04:00 |
Paul Dino Jones
|
336d240be4
|
change buffer log to first byte, probably safe to assume there will be atleast 1 byte in the buffer.
|
2025-03-23 18:10:03 -04:00 |
Paul Dino Jones
|
8c764358b7
|
Fix led lua code so the buffer do not include device specific magic values
|
2025-03-23 18:05:58 -04:00 |
Paul Dino Jones
|
1e6bde9da1
|
Fix some issues with sound device code
|
2025-03-22 19:24:15 -04:00 |
Paul Dino Jones
|
5dc00eb4ce
|
Add ability to use lua on cammus c12
|
2025-03-22 19:16:54 -04:00 |
Paul Dino Jones
|
367c6fed34
|
Add Suspension travel effect
|
2025-03-21 19:45:34 -04:00 |
Paul Dino Jones
|
8e577c0f87
|
Fix issues with config segfaults
|
2025-03-21 19:44:55 -04:00 |
Paul Dino Jones
|
3063d0a668
|
Add ability to use car proximity for lights
|
2025-03-21 13:55:56 -04:00 |
Paul Dino Jones
|
a597f29c1f
|
Add more logging to config loading
|
2025-03-21 13:55:21 -04:00 |
Paul Dino Jones
|
bec6433969
|
Add AMPLIFY modulation
|
2025-03-15 23:42:15 -04:00 |
Paul Dino Jones
|
11bd2f71ef
|
Fix lua cmake dependency. Use specified frequency as base frequency for engine effects
|
2025-03-11 12:01:24 -04:00 |
Paul Dino Jones
|
9c0cadffdf
|
Add support for simhub protocol and custom lua scripts to control leds
|
2025-02-25 18:41:10 -05:00 |
Paul Dino Jones
|
d0f4a48c35
|
Updated to latest simapi for getpid improvements
|
2025-02-19 15:46:44 -05:00 |
Paul Dino Jones
|
fdb318bfae
|
Update sketches to use 115200 baud
|
2025-02-12 15:04:38 -05:00 |
Paul Dino Jones
|
e7751b4e16
|
fix improper detecting of usb haptic device
|
2025-02-01 17:01:50 -05:00 |
Paul Dino Jones
|
7a5ca94209
|
Refactor serial devices so a single open handle is shared throughout
|
2025-01-25 09:52:38 -05:00 |
Paul Dino Jones
|
8bf98fae1e
|
moved some confusing code
|
2025-01-25 09:51:20 -05:00 |
Paul Dino Jones
|
0e47f53f88
|
improve process of closing sound devices
|
2025-01-25 09:50:11 -05:00 |
Paul Dino Jones
|
414b9708f4
|
pulling in latest simapi for improvements to pcars2
|
2025-01-21 17:23:28 -05:00 |
Paul Dino Jones
|
fc95f044bf
|
Adding max frequency and modulation to sound devices
|
2025-01-21 17:23:10 -05:00 |
Paul Dino Jones
|
10c5d2c597
|
Fix bug causing no tyre effects
|
2025-01-20 12:13:49 -05:00 |
Paul Dino Jones
|
f2ba345cab
|
Update to latest simapi, allow sim strings in configs
|
2025-01-20 10:53:57 -05:00 |
Paul Dino Jones
|
d97118e19b
|
updated to latest simapi
|
2025-01-19 15:16:30 -05:00 |
Paul Dino Jones
|
d927726f77
|
Updated to latest simapi for AC EVO support
|
2025-01-19 09:57:57 -05:00 |
Paul Dino Jones
|
3b0d75423f
|
Removed calls to abort
|
2025-01-18 19:01:52 -05:00 |
Paul Dino Jones
|
0c5a953787
|
moved to latest simapi
|
2025-01-18 13:36:03 -05:00 |
Paul Dino Jones
|
6d24c5e7f2
|
Add numlights setting
|
2025-01-18 13:20:56 -05:00 |
Paul Dino Jones
|
d3618c758d
|
fix revburner typo
|
2025-01-18 12:26:23 -05:00 |
Paul Dino Jones
|
052ee12178
|
Initially adding support for SIMAGIC P1000 Pedals
|
2025-01-18 03:30:11 -05:00 |
Paul Dino Jones
|
6d0b027171
|
lock pulseaudio mainloop while freeing sound devices
|
2025-01-17 19:41:12 -05:00 |
Paul Dino Jones
|
6f14b09f1a
|
use more standard channel map
|
2025-01-17 18:22:51 -05:00 |
Paul Dino Jones
|
83e92391f4
|
added global refresh rate -f
|
2025-01-17 10:29:27 -05:00 |
Paul Dino Jones
|
0a498f0c64
|
move logging around to make output a little cleaner
|
2025-01-16 22:22:49 -05:00 |
Paul Dino Jones
|
13d7a03acb
|
remove old commented code
|
2025-01-16 22:10:44 -05:00 |
Paul Dino Jones
|
4df9787c21
|
I knew there was a reason it was commented out. It makes valgrind happy but causes the program to segfault on exit.
|
2025-01-16 17:00:15 -05:00 |
Paul Dino Jones
|
7f371ebf15
|
fix more malloc complaints
|
2025-01-16 16:57:34 -05:00 |
Paul Dino Jones
|
6145efd2a9
|
fix bad memory management around device threading model
|
2025-01-16 16:45:37 -05:00 |
Paul Dino Jones
|
0ad78b4ef1
|
sound devices stay on main thread
|
2025-01-16 01:08:00 -05:00 |
Paul Dino Jones
|
44dcc703e3
|
fix some effects in test loop
|
2025-01-15 23:43:25 -05:00 |
Paul Dino Jones
|
327cd0eaad
|
add sim entry to diameters file
|
2025-01-15 23:42:57 -05:00 |
Paul Dino Jones
|
a30247eb6f
|
add logging for haptic effects, fix consistency of test sequence
|
2025-01-15 18:16:07 -05:00 |
Paul Dino Jones
|
eabfef6efe
|
fix bug in tyre effects and its test
|
2025-01-15 14:11:42 -05:00 |
Paul Dino Jones
|
5d67611b98
|
fixed return of checkbyte for moza
|
2025-01-15 12:24:08 -05:00 |
Paul Dino Jones
|
8dfc4c0435
|
fix floating point issue on moza
|
2025-01-14 20:23:43 -05:00 |
Paul Dino Jones
|
f2a5872520
|
temporarily add another step with rpms at 7000 to assist in debugging some wheels
|
2025-01-14 20:23:11 -05:00 |
Paul Dino Jones
|
5b003b606d
|
updated to latest simapi
|
2025-01-14 18:25:42 -05:00 |
Paul Dino Jones
|
f64fde023a
|
fix issues with serial wheel
|
2025-01-14 18:09:35 -05:00 |
Paul Dino Jones
|
2f32501bf8
|
Improve config handling
|
2025-01-14 17:40:07 -05:00 |
Paul Dino Jones
|
30cb1def72
|
removed unused jansson header
|
2025-01-13 19:17:42 -05:00 |
Paul Dino Jones
|
def2bfbb89
|
Add support for per device fps settings.
|
2025-01-13 15:16:57 -05:00 |
Paul Dino Jones
|
79b3aba157
|
Use STARTLED default of 1
|
2025-01-02 16:21:15 -05:00 |
Paul Dino Jones
|
b90dfdfc31
|
Add start led
|
2025-01-02 15:54:46 -05:00 |
Paul Dino Jones
|
a2ff24afd7
|
add code to smooth out frequencies between audio frames
|
2024-12-04 11:20:21 -05:00 |
Paul Dino Jones
|
c8e40e9b80
|
persist phase to stop disjointed sine waves
|
2024-12-03 20:47:57 -05:00 |
Paul Dino Jones
|
c1375ae0c9
|
improve stability of config file loading when multiple configs are in use
|
2024-11-22 16:21:30 -05:00 |
Paul Dino Jones
|
7caca1d362
|
fix issues with simapi mapping correctly when using simd
|
2024-11-22 16:21:08 -05:00 |
Paul Dino Jones
|
b8ac911d44
|
Use more generic sysfs path to find csl elite v3 pedals
|
2024-11-19 11:57:58 -05:00 |
Paul Dino Jones
|
2b6812b3a9
|
Use latest simapi to improve tyre slip effects
|
2024-11-19 11:55:55 -05:00 |
Paul Dino Jones
|
12509e9709
|
Added ampfactor to serial haptic log message
|
2024-10-10 15:00:39 -04:00 |
Paul Dino Jones
|
d507749f39
|
upgraed to latest simapi
|
2024-10-06 00:49:08 -04:00 |
Paul Dino Jones
|
ec8bbbbd0d
|
upgraded to new simapi
|
2024-10-05 17:10:00 -04:00 |
Paul Dino Jones
|
f4a4c635e1
|
Updated to latest simapi
|
2024-10-05 08:32:01 -04:00 |
Paul Dino Jones
|
144a670dbb
|
Updated to latest simapi
|
2024-10-05 08:28:26 -04:00 |
Paul Dino Jones
|
2a897d930a
|
UDP support and upgrade to latest simapi for udp and logging support
|
2024-10-01 12:46:41 -04:00 |
Paul Dino Jones
|
558b298a78
|
Fix issue not setting correct baud rate through to libserialport
|
2024-09-30 22:21:35 -04:00 |
Paul Dino Jones
|
32a15eff50
|
set simhaptic baud to 9600
|
2024-09-30 20:34:29 -04:00 |
Paul Dino Jones
|
ec6cb073ee
|
Fixed overlook device settings in config processing
|
2024-09-19 21:22:00 -04:00 |
Paul Dino Jones
|
128d02e71a
|
Fix a couple things i missed in the merge
|
2024-09-19 18:59:46 -04:00 |
Paul Dino Jones
|
c0755aef54
|
Reorganization and config updates for Moza wheel
|
2024-09-19 18:54:16 -04:00 |
Paul Dino Jones
|
525dd68b4b
|
Add ability to specify baud rate in config file
|
2024-09-19 18:54:12 -04:00 |
Lawstorant
|
f76fe53a3b
|
Initial work
|
2024-09-19 18:53:04 -04:00 |
Paul Jones
|
545168c3ab
|
Serial8 (#11)
* Using 8 bits per int for serial devices
* Refactor simwind code slightly to improve performance
|
2024-09-19 17:05:42 -04:00 |
Paul Dino Jones
|
2446fc9af2
|
Moved baud rate to serial device struct and fixed log message
|
2024-09-17 10:17:40 -04:00 |
Paul Dino Jones
|
e1b71850bb
|
Fix velocity bytes on cammus c12 hid message
|
2024-09-16 16:48:17 -04:00 |
Paul Dino Jones
|
a81004418d
|
Support for cammus c12
|
2024-09-16 16:14:18 -04:00 |
Paul Dino Jones
|
910e225a9a
|
Add some robustness to diameters file and slip effect code
|
2024-09-16 14:08:58 -04:00 |
Paul Dino Jones
|
695581b66d
|
Fix issue with test not having a car set
|
2024-09-15 12:24:23 -04:00 |
Paul Dino Jones
|
88e762b718
|
Added more checks to make sure sims do not try to set tyre diameters without a car set
|
2024-09-08 18:49:01 -04:00 |
Paul Dino Jones
|
55dfa4b086
|
Do not compare car if it is null
|
2024-09-08 18:44:21 -04:00 |
Paul Dino Jones
|
d1629dfcbd
|
Added more robustness to config lookup
|
2024-09-06 14:50:00 -04:00 |
Paul Dino Jones
|
9e09a2792a
|
Added more logging to config load
|
2024-09-06 14:30:12 -04:00 |
Paul Dino Jones
|
9f45697564
|
Put default configs closer to the bottom
|
2024-09-04 16:22:36 -04:00 |
Paul Dino Jones
|
1ffbd84721
|
Fix some issues with config loading
|
2024-09-04 16:15:34 -04:00 |
Paul Dino Jones
|
f474027f0a
|
Add ability to specify baud rate in config file
|
2024-09-04 12:56:02 -04:00 |
Paul Dino Jones
|
2fb0383091
|
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
|
8b63346071
|
Update CMake so project build
|
2024-09-02 13:24:34 -04:00 |
Paul Dino Jones
|
5cd82e35eb
|
Updated to latest simapi
|
2024-09-02 13:20:28 -04:00 |
Paul Dino Jones
|
07e1a840be
|
Update to latest simapi
|
2024-09-02 12:40:40 -04:00 |
Paul Dino Jones
|
b5eee247b3
|
Updated to latest simapi
|
2024-09-02 12:09:18 -04:00 |
Paul Dino Jones
|
08209a96bd
|
Initialize some data so tyre diameter detection works, and motors spin down.
|
2024-09-02 11:15:19 -04:00 |
Paul Dino Jones
|
fd1264611c
|
Set gameloop to 8fps for now to avoid issues
|
2024-09-02 11:13:19 -04:00 |
Paul Dino Jones
|
df0ad1f5c9
|
Improving loop management to prevent double freeing. Fixing other memory issues
|
2024-09-02 10:43:36 -04:00 |
Paul Dino Jones
|
07d797f24c
|
making log statement more accurate
|
2024-08-31 16:14:33 -04:00 |
Paul Dino Jones
|
572a21b3d6
|
Move some things around and add another indicator to prevent double frees
|
2024-08-31 16:02:34 -04:00 |
Paul Dino Jones
|
d1f252d4e0
|
Fix log statement so it actual outputs the amount of slip
|
2024-08-31 16:02:04 -04:00 |
Paul Dino Jones
|
40726c06c8
|
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
|
607a7ad7c3
|
update to latest simapi
|
2024-08-12 23:50:18 -04:00 |
Paul Dino Jones
|
3032433f7d
|
Update to latest simapi to fix gear in truck sims
|
2024-08-11 23:48:00 -04:00 |
Paul Dino Jones
|
9e21c3bc43
|
Add SCS Truck Sim support
|
2024-08-11 23:28:29 -04:00 |
Paul Dino Jones
|
2e538b0855
|
Refactored wheel diameters config logic
|
2024-08-08 21:19:52 -04:00 |
Paul Dino Jones
|
6c66c8880e
|
Set useconfig before initializing devices
|
2024-08-08 15:02:55 -04:00 |
Paul Dino Jones
|
27cb95c86d
|
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
|
a9012a07fb
|
setting uninitialized values on sound devices
|
2024-08-08 00:28:03 -04:00 |
Paul Dino Jones
|
366b8cb5b1
|
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
|
2086108de6
|
Add Reverse for Cammus C5
|
2024-08-06 10:06:49 -04:00 |
Paul Dino Jones
|
fda4c0dbcd
|
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
|
aff76a3dd9
|
Fix issue with bad data being send to cammus wheel on quit
|
2024-08-05 17:08:23 -04:00 |
Paul Dino Jones
|
3bcf2ee87e
|
Fix include paths
|
2024-08-05 17:07:04 -04:00 |
Paul Dino Jones
|
316ff0c273
|
Add more logging for cammus
|
2024-08-05 16:43:47 -04:00 |
Paul Dino Jones
|
bf8dddd89f
|
clear bytes on each update
|
2024-08-05 16:31:58 -04:00 |
Paul Dino Jones
|
b4ebcc078b
|
Fix gear
|
2024-08-05 16:18:51 -04:00 |
Paul Dino Jones
|
45b336ecbc
|
Using correct pid for cammus
|
2024-08-05 16:11:29 -04:00 |
Paul Dino Jones
|
db1caa2b8d
|
Small fixes for speed and gear
|
2024-08-05 16:10:15 -04:00 |
Paul Dino Jones
|
492484ac7c
|
rpm margin must return as an integer
|
2024-08-05 14:49:32 -04:00 |
Paul Dino Jones
|
fdad56db31
|
Initial attempt at adding support CammusC5 wheel with underlying code for future wheels.
|
2024-08-05 13:42:17 -04:00 |
Paul Dino Jones
|
47cf4b3fa9
|
Reverse regression in previous commit
|
2024-08-04 17:07:09 -04:00 |
Paul Dino Jones
|
6b9c688bcc
|
Refactor motor haptic effect slightly. Add logging.
|
2024-08-04 14:58:01 -04:00 |
Paul Dino Jones
|
14da8d22e7
|
Pull in and use latest simapi
|
2024-07-28 19:02:40 -04:00 |
Paul Dino Jones
|
40d4c19a26
|
Start sound devices with frequency set to 0 to avoid loud start ups
|
2024-07-28 11:18:41 -04:00 |
Paul Dino Jones
|
53cdcc592f
|
Fix small buffer overflow on the diameters file string
|
2024-07-28 11:00:26 -04:00 |
Paul Dino Jones
|
80a2afb675
|
Update to latest simapi to fix issues with file descriptors
|
2024-07-28 02:23:45 -04:00 |
Paul Dino Jones
|
a07bb24730
|
Add more logging for mem freeing
|
2024-07-28 02:08:18 -04:00 |
Paul Dino Jones
|
6989881b00
|
update to latest simapi to bypass wrong behavior
|
2024-07-28 02:06:44 -04:00 |
Paul Dino Jones
|
e15f7e0865
|
Added extra logging. Added code to free mapped memory and file descriptors
|
2024-07-27 20:32:09 -04:00 |
Paul Dino Jones
|
bc6b4825e9
|
Fix issue with tyre effects on sound devices
|
2024-07-27 20:09:24 -04:00 |
Paul Dino Jones
|
73d739fb20
|
update to latest simapi
|
2024-07-27 19:51:17 -04:00 |
Paul Dino Jones
|
3ab4e69d64
|
More support for beyond stereo
|
2024-07-22 21:45:57 -04:00 |
Paul Dino Jones
|
d581e3eeab
|
Better handle volume math
|
2024-07-20 20:15:16 -04:00 |