Link Search Menu Expand Document

Ev3Wrap::UltrasonicSensor

public methods


static UltrasonicSensor bind(ev3dev::address_type addr = ev3dev::INPUT_AUTO)

Constructor

Description: static constructor to bind to an input address. returns the binded UltrasonicSensor object. Will automatically detect which port the UltrasonicSensor is connected if no parameter given.


float getCentimetres()

getter method

Description: get distance measured in centimetres.


bool getSensorsNearby()

getter method

Untested

Description: check if there are other ultrasonic sensors nearby.