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

Counters for lower sampling rate. More...

#include <objects.h>

Public Attributes

uint16_t speedSensor = 0
 Counter for speed sensor.
 
uint16_t imu = 0
 Counter for IMU.
 
uint16_t mag = 0
 Counter for magnetometer.
 
uint16_t debug = 0
 Counter for debugging.
 
uint16_t log = 0
 Counter for data logging.
 
uint16_t LED = 0
 Counter for LED blinking.
 

Detailed Description

Counters for lower sampling rate.

The struct contains counters for lower sampling rate than SAMPLING_TIME.

See also
Constants

Member Data Documentation

◆ debug

uint16_t Counter::debug = 0

Counter for debugging.

See also
Debugging DEBUG_SAMPLING_FAC

◆ imu

uint16_t Counter::imu = 0

Counter for IMU.

See also
IMU_SAMPLING_FAC

◆ LED

uint16_t Counter::LED = 0

Counter for LED blinking.

See also
LedMode DEF_LED LOG_LED MTP_LED ERR_LED

◆ log

uint16_t Counter::log = 0

Counter for data logging.

See also
Data logging LOG_SAMPLING_FAC

◆ mag

uint16_t Counter::mag = 0

Counter for magnetometer.

See also
MAG_SAMPLING_FAC

◆ speedSensor

uint16_t Counter::speedSensor = 0

Counter for speed sensor.

See also
SPEED_SAMPLING_FAC