include/ground.h File Reference

Line and ground sensor functions. More...

Go to the source code of this file.

Functions

bool ground_on_ground (void)
bool ground_on_line (uint8_t side)
uint8_t ground_on_line_pwm (void *side)
uint8_t ground_off_line_pwm (void *side)

Detailed Description

Line and ground sensor functions.

Definition in file ground.h.


Function Documentation

bool ground_on_ground ( void  )

Check if robot stands on ground.

Returns:
true when robot stands on ground
bool ground_on_line ( uint8_t  side)

Check if line sensor is on black line.

Parameters:
[in]sideDirections Direction of the sensor(s) ( LEFT or RIGHT or LEFT|RIGHT )
Returns:
true if one of the selected sensors is on a line