Updated config example to support profiles

This commit is contained in:
Paul Dino Jones 2024-09-03 16:59:48 -04:00
parent 8b63346071
commit f31947dc69
1 changed files with 68 additions and 64 deletions

View File

@ -1,64 +1,68 @@
devices = ( { device = "USB"; configs = ({
type = "Tachometer"; sim = 0;
devid = "98FD:83AC"; car = "default";
subtype = "Revburner"; devices = ( { device = "USB";
granularity = 2; type = "Tachometer";
config = "~/.config/monocoque/revburner15000.xml"; }, devid = "98FD:83AC";
{ device = "Sound"; subtype = "Revburner";
effect = "Engine"; granularity = 2;
devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo"; config = "~/.config/monocoque/revburner15000.xml"; },
pan = 1; { device = "Sound";
volume = 90; effect = "Engine";
frequency = 27; }, devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo";
{ device = "Sound"; pan = 1;
effect = "Gear" volume = 90;
devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo"; frequency = 27; },
pan = 1; { device = "Sound";
duration = .25; effect = "Gear"
volume = 100; devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo";
frequency = 27; }, pan = 1;
{ device = "USB"; duration = .25;
type = "Haptic"; volume = 100;
subtype = "ClubSportElitePedalsV3"; frequency = 27; },
effect = "ABS"; { device = "USB";
tyre = "ALL"; type = "Haptic";
threshold = 0.05; }, subtype = "ClubSportElitePedalsV3";
{ device = "USB"; effect = "ABS";
type = "Haptic"; tyre = "ALL";
subtype = "ClubSportElitePedalsV3"; threshold = 0.05; },
effect = "Slip"; { device = "USB";
tyre = "REARS"; type = "Haptic";
threshold = 0.75; }, subtype = "ClubSportElitePedalsV3";
{ device = "USB"; effect = "Slip";
type = "Haptic"; tyre = "REARS";
subtype = "ClubSportElitePedalsV3"; threshold = 0.75; },
effect = "Lock"; { device = "USB";
tyre = "ALL"; type = "Haptic";
threshold = 0.75; }, subtype = "ClubSportElitePedalsV3";
{ device = "Serial"; effect = "Lock";
type = "SimWind"; tyre = "ALL";
config = "None"; threshold = 0.75; },
devpath = "/dev/ttyACM1"; }, { device = "Serial";
{ device = "Serial"; type = "SimWind";
type = "ShiftLights"; config = "None";
config = "None"; devpath = "/dev/ttyACM1"; },
devpath = "/dev/ttyACM0"; }, { device = "Serial";
{ device = "Serial"; type = "ShiftLights";
type = "Haptic"; config = "None";
effect = "TyreSlip"; devpath = "/dev/ttyACM0"; },
tyre = "ALL"; // motor m1 connected to throttle { device = "Serial";
motors = 0; type = "Haptic";
devpath = "/dev/ttyACM0"; }, effect = "TyreSlip";
{ device = "Serial"; tyre = "ALL"; // motor m1 connected to throttle
type = "Haptic"; motors = 0;
effect = "TyreLock"; devpath = "/dev/ttyACM0"; },
tyre = "ALL"; // motor m3 connected to brake; { device = "Serial";
motors = 2; type = "Haptic";
devpath = "/dev/ttyACM0"; }, effect = "TyreLock";
{ device = "Serial"; tyre = "ALL"; // motor m3 connected to brake;
type = "Haptic" motors = 2;
effect = "ABS"; devpath = "/dev/ttyACM0"; },
tyre = "ALL"; // this will have to be documented, this tells the code to spin both motors { device = "Serial";
motors = 8; type = "Haptic"
devpath = "/dev/ttyACM0";} effect = "ABS";
); tyre = "ALL"; // this will have to be documented, this tells the code to spin both motors
motors = 8;
devpath = "/dev/ttyACM0";}
);
});