From f31947dc690b15b89147fc4442d78d30d85a9a24 Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Tue, 3 Sep 2024 16:59:48 -0400 Subject: [PATCH] Updated config example to support profiles --- conf/monocoque.config | 132 ++++++++++++++++++++++-------------------- 1 file changed, 68 insertions(+), 64 deletions(-) diff --git a/conf/monocoque.config b/conf/monocoque.config index 95bf17d..d67e453 100644 --- a/conf/monocoque.config +++ b/conf/monocoque.config @@ -1,64 +1,68 @@ -devices = ( { device = "USB"; - type = "Tachometer"; - devid = "98FD:83AC"; - subtype = "Revburner"; - granularity = 2; - config = "~/.config/monocoque/revburner15000.xml"; }, - { device = "Sound"; - effect = "Engine"; - devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo"; - pan = 1; - volume = 90; - frequency = 27; }, - { device = "Sound"; - effect = "Gear" - devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo"; - pan = 1; - duration = .25; - volume = 100; - frequency = 27; }, - { device = "USB"; - type = "Haptic"; - subtype = "ClubSportElitePedalsV3"; - effect = "ABS"; - tyre = "ALL"; - threshold = 0.05; }, - { device = "USB"; - type = "Haptic"; - subtype = "ClubSportElitePedalsV3"; - effect = "Slip"; - tyre = "REARS"; - threshold = 0.75; }, - { device = "USB"; - type = "Haptic"; - subtype = "ClubSportElitePedalsV3"; - effect = "Lock"; - tyre = "ALL"; - threshold = 0.75; }, - { device = "Serial"; - type = "SimWind"; - config = "None"; - devpath = "/dev/ttyACM1"; }, - { device = "Serial"; - type = "ShiftLights"; - config = "None"; - devpath = "/dev/ttyACM0"; }, - { device = "Serial"; - type = "Haptic"; - effect = "TyreSlip"; - tyre = "ALL"; // motor m1 connected to throttle - motors = 0; - devpath = "/dev/ttyACM0"; }, - { device = "Serial"; - type = "Haptic"; - effect = "TyreLock"; - tyre = "ALL"; // motor m3 connected to brake; - motors = 2; - devpath = "/dev/ttyACM0"; }, - { device = "Serial"; - type = "Haptic" - effect = "ABS"; - tyre = "ALL"; // this will have to be documented, this tells the code to spin both motors - motors = 8; - devpath = "/dev/ttyACM0";} - ); +configs = ({ + sim = 0; + car = "default"; + devices = ( { device = "USB"; + type = "Tachometer"; + devid = "98FD:83AC"; + subtype = "Revburner"; + granularity = 2; + config = "~/.config/monocoque/revburner15000.xml"; }, + { device = "Sound"; + effect = "Engine"; + devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo"; + pan = 1; + volume = 90; + frequency = 27; }, + { device = "Sound"; + effect = "Gear" + devid = "alsa_output.usb-Generic_USB2.0_Device_20170726905959-00.analog-stereo"; + pan = 1; + duration = .25; + volume = 100; + frequency = 27; }, + { device = "USB"; + type = "Haptic"; + subtype = "ClubSportElitePedalsV3"; + effect = "ABS"; + tyre = "ALL"; + threshold = 0.05; }, + { device = "USB"; + type = "Haptic"; + subtype = "ClubSportElitePedalsV3"; + effect = "Slip"; + tyre = "REARS"; + threshold = 0.75; }, + { device = "USB"; + type = "Haptic"; + subtype = "ClubSportElitePedalsV3"; + effect = "Lock"; + tyre = "ALL"; + threshold = 0.75; }, + { device = "Serial"; + type = "SimWind"; + config = "None"; + devpath = "/dev/ttyACM1"; }, + { device = "Serial"; + type = "ShiftLights"; + config = "None"; + devpath = "/dev/ttyACM0"; }, + { device = "Serial"; + type = "Haptic"; + effect = "TyreSlip"; + tyre = "ALL"; // motor m1 connected to throttle + motors = 0; + devpath = "/dev/ttyACM0"; }, + { device = "Serial"; + type = "Haptic"; + effect = "TyreLock"; + tyre = "ALL"; // motor m3 connected to brake; + motors = 2; + devpath = "/dev/ttyACM0"; }, + { device = "Serial"; + type = "Haptic" + effect = "ABS"; + tyre = "ALL"; // this will have to be documented, this tells the code to spin both motors + motors = 8; + devpath = "/dev/ttyACM0";} + ); + });