3
3
4
4
// Environment configuration
5
5
6
+ boolean trans = true ;
6
7
// Stick control
7
8
boolean stickCtrl = false ;
8
9
// External radio control
@@ -54,28 +55,25 @@ boolean debugEnabled = true;
54
55
// Datalogging (enabling this disables debug)
55
56
boolean datalogger = true ;
56
57
57
- struct ConfigParam readConfig ()
58
- {
59
- struct ConfigParam config;
60
- config.boostMax = 700 ; // boost sensor max kpa
61
- config.boostDrop = 50 ; // kpa to drop on shifts
62
- config.boostSpring = 120 ; // kpa for wastegate spring pressure
63
- config.fuelMaxRPM = 2000 ; // RPM limit to turn on fuel pumps
64
- config.maxRPM = 7000 ; // Max engine RPM
65
- config.tireWidth = 195 ;
66
- config.tireProfile = 65 ;
67
- config.tireInches = 15 ;
68
- config.diffRatio = 3.27 ;
69
- config.rearDiffTeeth = 29 ; // number of teeth in diff
70
- config.nextShiftDelay = 2000 ; // ms. to wait before next shift to avoid accidental overshifting.
71
- config.maxSlip = 0.5 ; // Maximum allowed slip before error
72
- config.stallSpeed = 2200 ; // torque converter stall speed
73
- config.batteryLimit = 11500 ; // battery voltage limit in 11.5v
74
- config.firstTccGear = 2 ; // first gear when tcc is used.
75
- config.triggerWheelTeeth = 6 ; // number of teeth in trigger wheel for RPM calculation
76
- config.tpsAgre = 2 ; // 1-10 how aggressive slope tps has
77
- return config;
78
- }
58
+ struct ConfigParam config = {
59
+ .boostMax = 700 , // boost sensor max kpa
60
+ .boostDrop = 50 , // kpa to drop on shifts
61
+ .boostSpring = 120 , // kpa for wastegate spring pressure
62
+ .fuelMaxRPM = 2000 , // RPM limit to turn on fuel pumps
63
+ .maxRPM = 7000 , // Max engine RPM
64
+ .tireWidth = 195 ,
65
+ .tireProfile = 65 ,
66
+ .tireInches = 15 ,
67
+ .rearDiffTeeth = 29 , // number of teeth in diff
68
+ .nextShiftDelay = 2000 , // ms. to wait before next shift to avoid accidental overshifting.
69
+ .stallSpeed = 2200 , // torque converter stall speed
70
+ .batteryLimit = 11500 , // battery voltage limit in 11.5v
71
+ .firstTccGear = 2 , // first gear when tcc is used.
72
+ .triggerWheelTeeth = 6 , // number of teeth in trigger wheel for RPM calculation
73
+ .tpsAgre = 2 , // 1-10 how aggressive slope tps has
74
+ .diffRatio = 3.27 ,
75
+ .maxSlip = 0.5 // Maximum allowed slip before error
76
+ };
79
77
80
78
// End of environment conf
81
79
@@ -93,4 +91,4 @@ boolean speedFault = false;
93
91
// fault mode for battery fault
94
92
boolean batteryFault = false ;
95
93
// fault mode for excess slip
96
- boolean slipFault = false ;
94
+ boolean slipFault = false ;
0 commit comments