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

Declaration of types, objects and variables. More...

Go to the source code of this file.

Classes

struct  ImuData
 IMU raw data. More...
 
struct  Speed
 Speed raw data. More...
 
struct  GPSData
 GPS raw data. More...
 
struct  RiderTorque
 Torsiometer raw data. More...
 
struct  Steer
 Steering raw data. More...
 
struct  ForkDisp
 Fork displacement raw data. More...
 
struct  ActCurr
 Actual motor current raw data. More...
 
struct  Voltage
 Battery voltage raw data. More...
 
struct  Counter
 Counters for lower sampling rate. More...
 
struct  Timing
 Time taken by functions. More...
 
struct  RemoteCtrl
 Signals from remote controller. More...
 
struct  IOstatus
 Save the IO startu status. More...
 

Namespaces

namespace  LedMode
 Led mode constants.
 

Functions

TS4::Stepper brakeMotor (BR_STEP_PIN, BR_DIR_PIN)
 Stepper object for the brake motor.
 

Variables

constexpr int8_t LedMode::DEF = 0
 Default mode without signal-logging.
 
constexpr int8_t LedMode::LOG = 1
 Default mode with signal-logging.
 
constexpr int8_t LedMode::MTP = 2
 MTP mode.
 
constexpr int8_t LedMode::ERR = 3
 Error mode.
 
constexpr int8_t LedMode::MTPWAIT = 4
 MTP wait for USB connected.
 
uint32_t sampling_timer = 0
 Timer for the main cycle.
 
uint8_t GPSserial_extra_buffer [GPS_EXTBUFSIZE]
 
uint32_t nanVal = NAN_VAL
 NaN variable.
 
int8_t LEDmode = LedMode::DEF
 LED mode variable.
 
boolean LEDstate = false
 LED state.
 
Timing timing
 Timing of functions.
 
Counter counters
 Counters for lower sampling rate.
 
ImuData imuData_raw
 Raw data from IMU and magnetometer.
 
Speed speed_raw
 Raw data from speed sensor.
 
GPSData gpsData_raw
 Raw data from the GPS.
 
RiderTorque riderTorque_raw
 Raw data from the torsiometer.
 
ActCurr actCurr_raw
 Raw data from the motor current sensor.
 
Steer steer_raw
 Raw data from the steering sensors.
 
ForkDisp forkDisp_raw
 Raw data from the fork-displacement sensor.
 
Voltage voltage_raw
 Raw data from the battery voltage sensor.
 
RemoteCtrl remote_raw
 Channels from the remote controller.
 
IOstatus iostatus
 IO status flags.
 
ISM330DHCXSensor imu & USED_SPI
 IMU object (accelerometer and gryometer).
 
ADC * adc = new ADC()
 Pointer to ADC object.
 
Adafruit_GPS gps & UART_GPS
 GPS object.
 
ControlClass ctrl
 Control object.
 
SerialTransfer speedSensor
 SerialTransfer object for speed sensor.
 
SbusRx sbus & UART_SBUS
 SBUS object for remote controller.
 
int8_t enable_old = 0
 
int8_t enable_new = 0
 
uint32_t test_timer = 0
 
uint32_t test_start = 0
 

Detailed Description

Declaration of types, objects and variables.

File to declare namespace, type definition, and global variables and objects.

See also
Variables