vex_sdk/
distance.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! V5 Distance Sensor

#[cfg(any(target_env = "v5", target_env = "exp", doc))]
use core::ffi::c_double;

#[cfg(any(target_env = "v5", target_env = "exp", doc))]
use crate::{map_jump_table, V5_DeviceT};

#[cfg(any(target_env = "v5", target_env = "exp", doc))]
map_jump_table! {
    0x500 => pub fn vexDeviceDistanceDistanceGet(device: V5_DeviceT) -> u32,
    0x504 => pub fn vexDeviceDistanceConfidenceGet(device: V5_DeviceT) -> u32,
    0x508 => pub fn vexDeviceDistanceStatusGet(device: V5_DeviceT) -> u32,
    0x518 => pub fn vexDeviceDistanceObjectSizeGet(device: V5_DeviceT) -> i32,
    0x51c => pub fn vexDeviceDistanceObjectVelocityGet(device: V5_DeviceT) -> c_double,
}