SBB Micro
Source code for the self-balancing-bike microcontroller unit (Teensy 4.1-based). 🚀️
Loading...
Searching...
No Matches
Voltage Struct Reference

Battery voltage raw data. More...

#include <objects.h>

Public Attributes

uint16_t batVolt
 Battery voltage (in bits).
 
float batVolt_offset = 0
 Battery voltage offset (inV).
 

Detailed Description

Battery voltage raw data.

The struct contains the raw data of the battery voltage.

  • Battery voltage is in bits.
  • Battery voltage offset is V.
See also
Constants Macros

Member Data Documentation

◆ batVolt

uint16_t Voltage::batVolt

Battery voltage (in bits).

Measured value from ADC at the steering shaft.

See also
VOLTAGE CONVERT_VOLTAGE_TO_V

◆ batVolt_offset

float Voltage::batVolt_offset = 0

Battery voltage offset (inV).

The value is set to 0.

See also
do_zeros()