Allow negative angle on flat shift (#600)

This commit is contained in:
Vitor Moreno B. Sales 2021-07-18 20:35:42 -03:00 committed by GitHub
parent ef03225c32
commit cd9092517c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -650,7 +650,7 @@ page = 6
; Flat shift
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
iacCLValues = array, U08, 64, [10], "RPM", 10.0, 0.0, 0, 2550, 0

View File

@ -842,7 +842,7 @@ int8_t correctionSoftLaunch(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) ) )
{

View File

@ -1050,7 +1050,7 @@ struct config6 {
byte flatSEnable : 1; ///< Flat shift enable
byte baroPin : 4;
byte flatSSoftWin;
byte flatSRetard;
int8_t flatSRetard;
byte flatSArm;
byte iacCLValues[10]; //Closed loop target RPM value