value "int" PID_DISTANCE
Posted: Wed Feb 24, 2016 5:00 pm
problem output variable value in lcd "int" PID_DISTANCE , value "int" = -32 768 to 32 767 (-2 ^ 15 to 2 ^ 15-1)
the car traveled 35,000 km, the conclusion is incorrect distance values "int" on the display. Еhe display value of the distance -30535.
The correct value if the variable will be "long" from -2,147,483,648 to 2,147,483,647.
the car traveled 35,000 km, the conclusion is incorrect distance values "int" on the display. Еhe display value of the distance -30535.
The correct value if the variable will be "long" from -2,147,483,648 to 2,147,483,647.