vex_sdk/
battery.rs

1
2
3
4
5
6
7
8
9
10
11
12
//! V5 Smart Battery

use core::ffi::c_double;

use crate::map_jump_table;

map_jump_table! {
    0xa00 => pub fn vexBatteryVoltageGet() -> i32,
    0xa04 => pub fn vexBatteryCurrentGet() -> i32,
    0xa08 => pub fn vexBatteryTemperatureGet() -> c_double,
    0xa0c => pub fn vexBatteryCapacityGet() -> c_double,
}