Add API for getting left and right cliff detections

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
This commit is contained in:
Jacob Perron 2019-08-26 20:46:49 -07:00 committed by Jacob Perron
parent fd2f05047e
commit cafe0c5e56
2 changed files with 60 additions and 0 deletions

View file

@ -366,6 +366,26 @@ namespace create {
*/
bool isCliff() const;
/**
* \return true if the left sensor detects a cliff, false otherwise.
*/
bool isCliffLeft() const;
/**
* \return true if the front left sensor detects a cliff, false otherwise.
*/
bool isCliffFrontLeft() const;
/**
* \return true if the right sensor detects a cliff, false otherwise.
*/
bool isCliffRight() const;
/**
* \return true if the front right sensor detects a cliff, false otherwise.
*/
bool isCliffFrontRight() const;
/**
* \return true if there is a virtual wall signal is being received.
*/