- Index
- » Users
- » Madhan_94
- » Profile
Posts
Posts
Unable to expand if-statement:
if (firstOrder.y > 0.0001 and Throttle > 0.01 and currentGear < floor( upshiftTable.y[1])) then
shiftBegin = (if GearNumber < floor(upshiftTable.y[1]) then true else false);
shiftEnd = (if GearNumber < floor(upshiftTable.y[1]) then false else (if GearNumber == floor(upshiftTable.y[1]) then true else false));
elseif (firstOrder.y < -0.0001 or currentGear > floor(downshiftTable.y[1])) then
shiftBegin = (if GearNumber > floor(downshiftTable.y[1]) then true else false);
shiftEnd = (if GearNumber > floor(downshiftTable.y[1]) then false else (if GearNumber == floor(downshiftTable.y[1]) then true else false));
else
// No equations
end if;
Not able to rectify the problem. please help me
- Index
- » Users
- » Madhan_94
- » Profile