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

Speed raw data. More...

#include <objects.h>

Public Attributes

int16_t speed
 Vehicle speed (in mm/s).
 
uint16_t dist
 Elapsed distance (in units of 0.25m).
 

Detailed Description

Speed raw data.

The struct contains the raw data from the speed sensor:

  • Speed is in cm/s.
  • Distance is in units of 0.25m.
See also
Constants

Member Data Documentation

◆ dist

uint16_t Speed::dist

Elapsed distance (in units of 0.25m).

See also
DIST_SCALE

◆ speed

int16_t Speed::speed

Vehicle speed (in mm/s).

See also
SPEED_SCALE