Allow negative angle on flat shift (#600)
This commit is contained in:
parent
ef03225c32
commit
cd9092517c
|
@ -650,7 +650,7 @@ page = 6
|
||||||
|
|
||||||
; Flat shift
|
; Flat shift
|
||||||
flatSSoftWin = scalar, U08, 61, "rpm", 100, 0.0, 100, 25500, 0
|
flatSSoftWin = scalar, U08, 61, "rpm", 100, 0.0, 100, 25500, 0
|
||||||
flatSRetard = scalar, U08, 62, "deg", 1.0, 0.0, 0.0, 80, 0
|
flatSRetard = scalar, S08, 62, "deg", 1.0, 0.0,-30.0, 80, 0
|
||||||
flatSArm = scalar, U08, 63, "rpm", 100, 0.0, 100, 25500, 0
|
flatSArm = scalar, U08, 63, "rpm", 100, 0.0, 100, 25500, 0
|
||||||
|
|
||||||
iacCLValues = array, U08, 64, [10], "RPM", 10.0, 0.0, 0, 2550, 0
|
iacCLValues = array, U08, 64, [10], "RPM", 10.0, 0.0, 0, 2550, 0
|
||||||
|
|
|
@ -842,7 +842,7 @@ int8_t correctionSoftLaunch(int8_t advance)
|
||||||
*/
|
*/
|
||||||
int8_t correctionSoftFlatShift(int8_t advance)
|
int8_t correctionSoftFlatShift(int8_t advance)
|
||||||
{
|
{
|
||||||
byte ignSoftFlatValue = advance;
|
int8_t ignSoftFlatValue = advance;
|
||||||
|
|
||||||
if(configPage6.flatSEnable && clutchTrigger && (currentStatus.clutchEngagedRPM > ((unsigned int)(configPage6.flatSArm) * 100)) && (currentStatus.RPM > (currentStatus.clutchEngagedRPM-configPage6.flatSSoftWin) ) )
|
if(configPage6.flatSEnable && clutchTrigger && (currentStatus.clutchEngagedRPM > ((unsigned int)(configPage6.flatSArm) * 100)) && (currentStatus.RPM > (currentStatus.clutchEngagedRPM-configPage6.flatSSoftWin) ) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1050,7 +1050,7 @@ struct config6 {
|
||||||
byte flatSEnable : 1; ///< Flat shift enable
|
byte flatSEnable : 1; ///< Flat shift enable
|
||||||
byte baroPin : 4;
|
byte baroPin : 4;
|
||||||
byte flatSSoftWin;
|
byte flatSSoftWin;
|
||||||
byte flatSRetard;
|
int8_t flatSRetard;
|
||||||
byte flatSArm;
|
byte flatSArm;
|
||||||
|
|
||||||
byte iacCLValues[10]; //Closed loop target RPM value
|
byte iacCLValues[10]; //Closed loop target RPM value
|
||||||
|
|
Loading…
Reference in New Issue