vex_sdk/distance.rs
1//! V5 Distance Sensor
2
3use core::ffi::c_double;
4
5use crate::{map_jump_table, V5_DeviceT};
6
7map_jump_table! {
8 0x500 => pub fn vexDeviceDistanceDistanceGet(device: V5_DeviceT) -> u32,
9 0x504 => pub fn vexDeviceDistanceConfidenceGet(device: V5_DeviceT) -> u32,
10 0x508 => pub fn vexDeviceDistanceStatusGet(device: V5_DeviceT) -> u32,
11 0x518 => pub fn vexDeviceDistanceObjectSizeGet(device: V5_DeviceT) -> i32,
12 0x51c => pub fn vexDeviceDistanceObjectVelocityGet(device: V5_DeviceT) -> c_double,
13}