Geo-Ron / AzuritBer

Ardumower full odometry version
0 stars 0 forks source link

If button use, it does not auto start #10

Open Geo-Ron opened 3 years ago

Geo-Ron commented 3 years ago

At robot::Setup() the next code is present:

if (!buttonUse) {
    // robot has no ON/OFF button => start immediately
    setNextState(STATE_FORWARD_ODO, false, false);
  }

This causes the robot to be off, when the cpu is reset...

Geo-Ron commented 3 years ago

Is buttonUse is unconfigured, it will try to start immediately and that results in an error.

The timer would need to be observed if the state is off and a timeout of (for example) 15 minutes has passed.