Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » Madhan_94
  • » Profile

Posts

Posts

Jul-25-17 06:19:53
Category: Programming

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
You are here: