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

Definitions of user functions. More...

Go to the source code of this file.

Functions

void start_IObus (void)
 Initialize the IO buses.
 
void set_IObus (void)
 Start the IO buses.
 
void do_zeros (void)
 Perform the zero.
 
void set_GPIO (void)
 Set the GPIO.
 
void start_brake_stepper (void)
 Start the brake stepper motor.
 
void get_sensors (void)
 Get sensor readings.
 
bool check_sbus (void)
 Check for SBUS.
 
void set_ctrl_input (void)
 Set the control inputs.
 
void do_control (void)
 Update the control loop.
 
void update_tet (uint32_t t0)
 Update task execution time.
 
void check_error (void)
 Check for errors.
 
int8_t get_selector (void)
 Get the selector.
 
bool get_enable (void)
 Get the enable.
 
void set_driver (void)
 Set the drivers.
 
void turnoff_callback (void)
 Callback for tuning off.
 
boolean check_voltage (void)
 Check the battery voltage.
 
time_t getTime ()
 Get internal RTC time.
 
void do_led ()
 Management of the status LED.
 
void serial_flush (void)
 Flush the UARTs.
 
void set_ctrl_param (void)
 Set custom control parameters.
 

Detailed Description

Definitions of user functions.

File to defined the user-defined functions, except for those related to the logging, debugging, and mtp-mode. Function prototypes are in prototypes.h.

See also
User functions prototypes.h