file
distance.hContents
- Reference
Contains prototypes for functions related to the VEX Distance sensor.
This file should not be modified by users, since it gets replaced whenever a kernel upgrade occurs.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http:/
Namespaces
Functions
- int32_t distance_get(uint8_t port)
- Get the currently measured distance from the sensor in mm.
- int32_t distance_get_confidence(uint8_t port)
- Get the confidence in the distance reading.
- int32_t distance_get_object_size(uint8_t port)
- Get the current guess at relative object size.
- double distance_get_object_velocity(uint8_t port)
- Get the object velocity in m/s.