fix formatting of monocoque.config

This commit is contained in:
Paul Dino Jones 2025-08-31 19:20:58 -04:00
parent 7e923354ba
commit e4a8a998e8
1 changed files with 232 additions and 193 deletions

View File

@ -1,16 +1,21 @@
configs = ({ configs = (
{
sim = "default"; sim = "default";
// one can also specify sim by using the "short-name" for example "ac". also, "acc", "ace", "ams2", "et", "at" and "rf2" // one can also specify sim by using the "short-name" for example "ac". also, "acc", "ace", "ams2", "et", "at" and "rf2"
//sim = "ac"; //sim = "ac";
car = "default"; car = "default";
devices = ( { device = "USB"; devices = (
{
device = "USB";
type = "Tachometer"; type = "Tachometer";
devid = "98FD:83AC"; devid = "98FD:83AC";
subtype = "Revburner"; subtype = "Revburner";
granularity = 2; granularity = 2;
config = "~/.config/monocoque/revburner15000.xml"; }, config = "~/.config/monocoque/revburner15000.xml";
},
{ device = "Sound"; {
device = "Sound";
effect = "Engine"; effect = "Engine";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
pan = 3; pan = 3;
@ -20,8 +25,10 @@ configs = ({
volume = 70; volume = 70;
modulation = "frequency"; modulation = "frequency";
frequency = 17; frequency = 17;
frequencyMax = 37;}, frequencyMax = 37;
{ device = "Sound"; },
{
device = "Sound";
effect = "Gear" effect = "Gear"
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
pan = 3; pan = 3;
@ -30,11 +37,13 @@ configs = ({
channels = 8; channels = 8;
duration = .6; duration = .6;
volume = 100; volume = 100;
frequency = 15; }, frequency = 15;
},
{ device = "Sound"; {
device = "Sound";
effect = "TyreSlip"; effect = "TyreSlip";
tyre = "RearLeft"; tyre = "RearLeft";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -45,8 +54,10 @@ configs = ({
volume = 100; volume = 100;
modulation = "frequency"; modulation = "frequency";
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
{ device = "Sound"; },
{
device = "Sound";
effect = "TyreSlip"; effect = "TyreSlip";
tyre = "RearRight"; tyre = "RearRight";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -57,8 +68,10 @@ configs = ({
volume = 100; volume = 100;
modulation = "frequency"; modulation = "frequency";
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
{ device = "Sound"; },
{
device = "Sound";
effect = "TyreSlip"; effect = "TyreSlip";
tyre = "FrontLeft"; tyre = "FrontLeft";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -68,8 +81,10 @@ configs = ({
volume = 100; volume = 100;
modulation = "frequency"; modulation = "frequency";
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
{ device = "Sound"; },
{
device = "Sound";
effect = "TyreSlip"; effect = "TyreSlip";
tyre = "FrontRight"; tyre = "FrontRight";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -79,11 +94,13 @@ configs = ({
volume = 100; volume = 100;
modulation = "frequency"; modulation = "frequency";
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
},
{ device = "Sound"; {
device = "Sound";
effect = "TyreLock"; effect = "TyreLock";
tyre = "RearLeft"; tyre = "RearLeft";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -93,8 +110,10 @@ configs = ({
volume = 100; volume = 100;
modulation = "frequency"; modulation = "frequency";
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
{ device = "Sound"; },
{
device = "Sound";
effect = "TyreLock"; effect = "TyreLock";
tyre = "RearRight"; tyre = "RearRight";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -104,8 +123,10 @@ configs = ({
modulation = "frequency"; modulation = "frequency";
volume = 100; volume = 100;
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
{ device = "Sound"; },
{
device = "Sound";
effect = "TyreLock"; effect = "TyreLock";
tyre = "FrontLeft"; tyre = "FrontLeft";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -115,8 +136,10 @@ configs = ({
volume = 100; volume = 100;
modulation = "frequency"; modulation = "frequency";
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
{ device = "Sound"; },
{
device = "Sound";
effect = "TyreLock"; effect = "TyreLock";
tyre = "FrontRight"; tyre = "FrontRight";
devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71"; devid = "alsa_output.pci-0000_0d_00.0.analog-surround-71";
@ -126,9 +149,11 @@ configs = ({
volume = 100; volume = 100;
modulation = "frequency"; modulation = "frequency";
frequency = 30; frequency = 30;
frequencyMax = 37;}, frequencyMax = 37;
},
{ device = "USB"; {
device = "USB";
type = "Haptic"; type = "Haptic";
subtype = "CSLELITEV3PEDALS"; subtype = "CSLELITEV3PEDALS";
//devpath = "/sys/module/hid_fanatec/drivers/hid:fanatec/0003:0EB7:183B.0002/rumble"; //devpath = "/sys/module/hid_fanatec/drivers/hid:fanatec/0003:0EB7:183B.0002/rumble";
@ -137,8 +162,10 @@ configs = ({
tyre = "ALL"; tyre = "ALL";
threshold = 0.2; threshold = 0.2;
value0 = 0; value0 = 0;
value1 = 16776960; }, value1 = 16776960;
{ device = "USB"; },
{
device = "USB";
type = "Haptic"; type = "Haptic";
subtype = "CSLELITEV3PEDALS"; subtype = "CSLELITEV3PEDALS";
//devpath = "/sys/module/hid_fanatec/drivers/hid:fanatec/0003:0EB7:183B.0002/rumble"; //devpath = "/sys/module/hid_fanatec/drivers/hid:fanatec/0003:0EB7:183B.0002/rumble";
@ -147,8 +174,10 @@ configs = ({
tyre = "ALL"; tyre = "ALL";
threshold = 0.2; threshold = 0.2;
value0 = 0; value0 = 0;
value1 = 16711680; }, value1 = 16711680;
{ device = "USB"; },
{
device = "USB";
type = "Haptic"; type = "Haptic";
subtype = "CSLELITEV3PEDALS"; subtype = "CSLELITEV3PEDALS";
//devpath = "/sys/module/hid_fanatec/drivers/hid:fanatec/0003:0EB7:183B.0002/rumble"; //devpath = "/sys/module/hid_fanatec/drivers/hid:fanatec/0003:0EB7:183B.0002/rumble";
@ -157,39 +186,51 @@ configs = ({
tyre = "ALL"; tyre = "ALL";
threshold = 0.2; threshold = 0.2;
value0 = 0; value0 = 0;
value1 = 65280; }, value1 = 65280;
},
{ device = "Serial"; {
device = "Serial";
type = "Haptic"; type = "Haptic";
effect = "TyreSlip"; effect = "TyreSlip";
tyre = "ALL"; // motor m1 connected to throttle tyre = "ALL"; // motor m1 connected to throttle
motors = 0; motors = 0;
devpath = "/dev/ttyACM0"; }, devpath = "/dev/ttyACM0";
{ device = "Serial"; },
{
device = "Serial";
type = "Haptic"; type = "Haptic";
effect = "TyreLock"; effect = "TyreLock";
tyre = "ALL"; // motor m3 connected to brake; tyre = "ALL"; // motor m3 connected to brake;
motors = 2; motors = 2;
devpath = "/dev/ttyACM0"; }, devpath = "/dev/ttyACM0";
{ device = "Serial"; },
{
device = "Serial";
type = "Haptic" type = "Haptic"
effect = "ABS"; effect = "ABS";
tyre = "ALL"; // this will have to be documented, this tells the code to spin both motors tyre = "ALL"; // this will have to be documented, this tells the code to spin both motors
motors = 8; motors = 8;
devpath = "/dev/ttyACM0";}, devpath = "/dev/ttyACM0";
{ device = "Serial"; },
{
device = "Serial";
type = "SimWind"; type = "SimWind";
config = "None"; config = "None";
baud = 115200; baud = 115200;
devpath = "/dev/simdev1"; }, devpath = "/dev/simdev1";
},
{ device = "Serial"; {
device = "Serial";
type = "SimWind"; type = "SimWind";
config = "None"; config = "None";
baud = 115200; baud = 115200;
devpath = "/dev/simdev1"; }, devpath = "/dev/simdev1";
},
{ device = "Serial"; {
device = "Serial";
type = "Simleds"; type = "Simleds";
numleds = 6; numleds = 6;
startled = 2; startled = 2;
@ -197,8 +238,6 @@ configs = ({
config = "~/git/monocoque/conf/rpms_and_radar.lua" config = "~/git/monocoque/conf/rpms_and_radar.lua"
baud = 115200; baud = 115200;
devpath = "/dev/simdev0"; devpath = "/dev/simdev0";
}
);
}); });
}
);