#pragma once
class Sim
{
   float posX, posY;    // simulated mower position
   float posStep;
   float delta;         // simulated mower direction
   float deltaStep;
   float speed;
public:
   bool activeFlag = false;
   bool homeFlag = true;
   bool SetLinearAngularSpeed(float lin, float ang);
   bool ComputeRobotState();
   bool Obstacle(bool& obstacleFlag);
   bool RobotShouldMove(bool& shouldMoveFlag);
   Sim();
};

extern Sim sim;
#define simulationFlag sim.activeFlag