include/obstacle.h File Reference

Obstacle sensor functions. More...

Go to the source code of this file.


uint8_t obstacle_state (void)

Detailed Description

Obstacle sensor functions.

Definition in file obstacle.h.

Function Documentation

uint8_t obstacle_state ( void  )

Get status of the obstacle sensor.

  • 0 if no obstacle detected
  • Direction of the obstacle ( LEFT or RIGHT or LEFT|RIGHT )