{
"pab_v55_brake_F": {
    "information":{
        "authors":"Kenemation",
        "name":"Front Disc Brakes",

        "value":200,
    },
    "slotType" : "pab_v55_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_premium", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        //brake discs
        ["brake_hub_5l", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.72,"y":-1.31,"z":0.295}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.72,"y":-1.31,"z":0.295}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_plain", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.73,"y":-1.31,"z":0.295}, "scale":{"x":0.9,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_plain", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.73,"y":-1.31,"z":0.295}, "scale":{"x":0.9,"y":1.0,"z":1.0}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["pab_v55_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.73,"y":-1.31,"z":0.295}, "scale":{"x":0.9,"y":0.92,"z":0.92}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["pab_v55_hub_F","wheelhub_FL"], [], {"pos":{"x":0.73,"y":-1.31,"z":0.295}, "scale":{"x":0.9,"y":0.92,"z":0.92}, "rot":{"x":0,"y":180,"z":0}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*2700"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":125},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.276},
        {"brakeMass":7.0},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.0},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"pab_v55_brake_R": {
    "information":{
        "authors":"Kenemation",
        "name":"Rear Disc Brakes",
        "value":190,
    },
    "slotType" : "pab_v55_brake_R",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R","brakepad_R_premium", "Rear Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.72,"y":1.4639,"z":0.305}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x":0.72,"y":1.4639,"z":0.305}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_solid", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.63,"y":0.93,"z":0.93}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_solid", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x":0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.63,"y":0.93,"z":0.93}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["pab_v55_hub_R","wheelhub_RR"], [], {"pos":{"x":-0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.63,"y":0.85,"z":0.85}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_standard_plain", ["pab_v55_hub_R","wheelhub_RL"], [], {"pos":{"x":0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.63,"y":0.85,"z":0.85}, "rot":{"x":180,"y":180,"z":0}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*1100"},
        {"brakeInputSplit":0.4},
        {"brakeSplitCoef":0.2},
        {"parkingTorque":1300},
        {"brakeSpring":125},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.26},
        {"brakeMass":4.4},
        {"brakeType":"disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":0.8},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"pab_v55_brake_F_race": {
    "information":{
        "authors":"Kenemation",
        "name":"Race Front Disc Brakes",
        "value":950,
    },
    "slotType" : "pab_v55_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_race", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.72,"y":-1.31,"z":0.295}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.72,"y":-1.31,"z":0.295}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_drilled", ["wheel_FR","wheelhub_FR"], [], {"pos":{"x":-0.73,"y":-1.31,"z":0.295}, "scale":{"x":0.928,"y":1.028,"z":1.028}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_drilled", ["wheel_FL","wheelhub_FL"], [], {"pos":{"x":0.73,"y":-1.31,"z":0.295}, "scale":{"x":0.928,"y":1.028,"z":1.028}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_6pot_red_rotopad", ["pab_v55_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.73,"y":-1.31,"z":0.295}, "scale":{"x":1.2,"y":1.05,"z":1.05}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_caliper_6pot_red_rotopad", ["pab_v55_hub_F","wheelhub_FL"], [], {"pos":{"x":0.73,"y":-1.31,"z":0.295}, "scale":{"x":1.2,"y":1.05,"z":1.05}, "rot":{"x":0,"y":180,"z":0}}],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        //["$braketorque", "range", "", "Brakes", 3800, 1000, 5000, "Max Brake Torque", "Scales the overall brake torque", {"minDis":0}]
        ["$brakebias", "range", "", "Brakes", 0.74, 0, 1, "Front/Rear Bias", "Percent of brake torque to the front wheels", {"minDis":0, "maxDis":100}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*4200*$brakebias"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.335},
        {"brakeMass":9.8},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.5},
        //brake sounds
        {"squealCoefNatural": 1.0, "squealCoefLowSpeed": 1.0}
    ],
},
"pab_v55_brake_R_race": {
    "information":{
        "authors":"Kenemation",
        "name":"Race Rear Disc Brakes",
        "value":900,
    },
    "slotType" : "pab_v55_brake_R",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R","brakepad_R_race", "Rear Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.72,"y":1.4639,"z":0.305}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x":0.72,"y":1.4639,"z":0.305}, "scale":{"x":0.6,"y":1.0,"z":1.0}, "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_drilled", ["wheel_RR","wheelhub_RR"], [], {"pos":{"x":-0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.64,"y":0.94,"z":0.94}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_drilled", ["wheel_RL","wheelhub_RL"], [], {"pos":{"x":0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.64,"y":0.94,"z":0.94}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_4pot_red_rotopad", ["pab_v55_hub_R","wheelhub_RR"], [], {"pos":{"x":-0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.9,"y":1.0,"z":0.92}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_4pot_red_rotopad", ["pab_v55_hub_R","wheelhub_RL"], [], {"pos":{"x":0.73,"y":1.4639,"z":0.305}, "scale":{"x":0.9,"y":1.0,"z":0.92}, "rot":{"x":180,"y":180,"z":0}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        //if no race front brake, use default value
        //{"brakeTorque":"$=case($brakebias == nil, $brakestrength*1000, $brakestrength*3800*(1-$brakebias))"},
        {"brakeTorque":"$=$brakebias == nil and $brakestrength*1000 or $brakestrength*4200*(1-$brakebias)"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":1700},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.305},
        {"brakeMass":7.5},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.2},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},

"pab_v55_brake_F_rally": {
    "information":{
        "authors":"Kenemation",
        "name":"Rally Front Disc Brakes",
        "value":850,
    },
    "slotType" : "pab_v55_brake_F",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_F","brakepad_F_semi_race", "Front Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_FR","wheelhub_FR"], [],                         {"pos":{"x":-0.72,"y":-1.31,"z":0.295}, "scale":{"x":0.6 ,"y":1.0,  "z":1.0},  "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_FL","wheelhub_FL"], [],                         {"pos":{"x": 0.72,"y":-1.31,"z":0.295}, "scale":{"x":0.6, "y":1.0,  "z":1.0},  "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_slotted", ["wheel_FR","wheelhub_FR"], [],                   {"pos":{"x":-0.73,"y":-1.31,"z":0.295}, "scale":{"x":1.0, "y":0.92, "z":0.92}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_slotted", ["wheel_FL","wheelhub_FL"], [],                   {"pos":{"x" :0.73,"y":-1.31,"z":0.295}, "scale":{"x":1.0, "y":0.92, "z":0.92}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_4pot_red_rotopad", ["pab_v55_hub_F","wheelhub_FR"], [], {"pos":{"x":-0.73,"y":-1.305,"z":0.295}, "scale":{"x":1.05,"y":1.0,  "z":1.0},  "rot":{"x":0,"y":0,"z":0}}],
        ["brake_caliper_4pot_red_rotopad", ["pab_v55_hub_F","wheelhub_FL"], [], {"pos":{"x": 0.73,"y":-1.305,"z":0.295}, "scale":{"x":1.05,"y":1.0,  "z":1.0},  "rot":{"x":0,"y":180,"z":0}}],
    ],
    "variables": [
        ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
        //["$braketorque", "range", "", "Brakes", 3800, 1000, 5000, "Max Brake Torque", "Scales the overall brake torque", {"minDis":0}]
        ["$brakebias", "range", "", "Brakes", 0.74, 0, 1, "Front/Rear Bias", "Percent of brake torque to the front wheels", {"minDis":0, "maxDis":100}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"brakeTorque":"$=$brakestrength*4200*$brakebias"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":0},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.30},
        {"brakeMass":9.25},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.5},
        //brake sounds
        {"squealCoefNatural": 1.0, "squealCoefLowSpeed": 1.0}
    ],
},
"pab_v55_brake_R_rally": {
    "information":{
        "authors":"Kenemation",
        "name":"Rally Rear Disc Brakes",
        "value":850,
    },
    "slotType" : "pab_v55_brake_R",
    "slots": [
        ["type", "default", "description"],
        ["brakepad_R","brakepad_R_semi_race", "Rear Brake Pads", {"coreSlot":true}],
    ],
    "flexbodies": [
        ["mesh", "[group]:", "nonFlexMaterials"],
        ["brake_hub_5l", ["wheel_RR","wheelhub_RR"], [],                         {"pos":{"x":-0.72,"y":1.4639,"z":0.305}, "scale":{"x":0.6, "y":1.0,  "z":1.0},  "rot":{"x":0,"y":0,"z":0}}],
        ["brake_hub_5l", ["wheel_RL","wheelhub_RL"], [],                         {"pos":{"x": 0.72,"y":1.4639,"z":0.305}, "scale":{"x":0.6, "y":1.0,  "z":1.0},  "rot":{"x":0,"y":0,"z":180}}],
        ["brake_disc_slotted", ["wheel_RR","wheelhub_RR"], [],                   {"pos":{"x":-0.73,"y":1.4639,"z":0.305}, "scale":{"x":1.0, "y":0.92, "z":0.92}, "rot":{"x":0,"y":0,"z":0}}],
        ["brake_disc_slotted", ["wheel_RL","wheelhub_RL"], [],                   {"pos":{"x": 0.73,"y":1.4639,"z":0.305}, "scale":{"x":1.0, "y":0.92, "z":0.92}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_4pot_red_rotopad", ["pab_v55_hub_R","wheelhub_RR"], [], {"pos":{"x":-0.73,"y":1.275,"z":0.305}, "scale":{"x":0.9, "y":1.0,  "z":1.0}, "rot":{"x":180,"y":0,"z":0}}],
        ["brake_caliper_4pot_red_rotopad", ["pab_v55_hub_R","wheelhub_RL"], [], {"pos":{"x": 0.73,"y":1.275,"z":0.305}, "scale":{"x":0.9, "y":1.0,  "z":1.0}, "rot":{"x":180,"y":180,"z":0}}],
    ],
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        //if no race front brake, use default value
        //{"brakeTorque":"$=case($brakebias == nil, $brakestrength*1000, $brakestrength*3800*(1-$brakebias))"},
        {"brakeTorque":"$=$brakebias == nil and $brakestrength*1000 or $brakestrength*4200*(1-$brakebias)"},
        {"brakeInputSplit":1},
        {"brakeSplitCoef":1},
        {"parkingTorque":1700},
        {"brakeSpring":100},

        //brake thermals
        {"enableBrakeThermals":true},
        {"brakeDiameter":0.30},
        {"brakeMass":9.25},
        {"brakeType":"vented-disc"},
        {"rotorMaterial":"steel"},
        {"brakeVentingCoef":1.2},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
"pab_v55_ABS_legacy": {
    "information":{
        "authors":"Kenemation",
        "name":"Anti-Lock Braking System (Legacy)",
        "value":250,
    },
    "slotType":"pab_v55_ABS_nop",
    "controller": [
        ["fileName"],
        ["absLegacy"],
    ],

    "absLegacy": {
        "wheelSettings":[
            ["wheelName",   "absFrequency", "avSmoothing",  "accSmoothing", "decelerationThreshold",    "accelerationThresholdSmall",   "accelerationThresholdLarge",   "referenceAVDeceleration",    "referenceAVThreshold"],
            ["FL",          100,            300,             100.00,           -1.00,                       1.00,                           2,                              0.3,                          1]
            ["FR",          100,            300,             100.00,           -1.00,                       1.00,                           2,                              0.3,                          1]
            ["RL",          100,            300,             100.00,           -1.00,                       1.00,                           2,                              0.3,                          1]
            ["RR",          100,            300,             100.00,           -1.00,                       1.00,                           2,                              0.3,                          1]
        ]
    }
},
"pab_v55_ABS": {
    "information":{
        "authors":"Kenemation",
        "name":"Anti-Lock Braking System",
        "value":250,
    },
    "slotType":"pab_v55_ABS",
    "pressureWheels": [
        ["name","hubGroup","group","node1:","node2:","nodeS","nodeArm:","wheelDir"],
        //brakes
        {"enableABS":true},
        //brake sounds
        {"squealCoefNatural": 0.0, "squealCoefLowSpeed": 0.0}
    ],
},
}