Loading...
Searching...
No Matches
defines.h File Reference
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dual_motor_driver_sensor_packet_t
 
struct  dual_motor_driver_command_packet_t
 
struct  imu_packet_t
 
struct  imu_data_t
 
struct  powerboard_packet_t
 
struct  powerboard_data_t
 
struct  dual_motor_driver_sensor_data_t
 
struct  sensor_packet_t
 
struct  command_packet_t
 
struct  init_packet_t
 
struct  ack_packet_t
 

Macros

#define N_SLAVES   6
 

Functions

struct dual_motor_driver_sensor_packet_t __attribute__ ((packed))
 

Variables

uint16_t status
 
uint16_t timestamp
 
int32_t position [2]
 
int16_t velocity [2]
 
int16_t current [2]
 
uint16_t coil_resistance [2]
 
uint16_t adc [2]
 
uint16_t mode
 
int32_t position_ref [2]
 
int16_t velocity_ref [2]
 
int16_t current_ref [2]
 
int16_t kp [2]
 
int16_t kd [2]
 
int8_t i_sat [2]
 
int16_t accelerometer [3]
 
int16_t gyroscope [3]
 
int16_t attitude [3]
 
int16_t linear_acceleration [3]
 
uint16_t vbus
 
int16_t vshunt
 
float energy
 
float current_bus
 
float voltage_bus
 
float energy_bus
 
bool is_system_enabled
 
bool is_motor_enabled [2]
 
bool is_motor_ready [2]
 
bool has_index_been_detected [2]
 
bool index_toggle_bit [2]
 
uint8_t error_code
 
uint16_t session_id
 
struct dual_motor_driver_sensor_packet_t dual_motor_driver_sensor_packets [N_SLAVES]
 
struct imu_packet_t imu
 
struct powerboard_packet_t powerboard
 
uint16_t sensor_index
 
uint16_t packet_loss
 
uint16_t last_cmd_index
 
struct dual_motor_driver_command_packet_t dual_motor_driver_command_packets [N_SLAVES]
 
uint16_t command_index
 
uint16_t protocol_version
 
uint8_t spi_connected
 

Macro Definition Documentation

◆ N_SLAVES

#define N_SLAVES   6

Function Documentation

◆ __attribute__()

struct dual_motor_driver_sensor_packet_t __attribute__ ( (packed)  )

Variable Documentation

◆ accelerometer

float accelerometer

◆ adc

float adc

◆ attitude

float attitude

◆ coil_resistance

float coil_resistance

◆ command_index

uint16_t command_index

◆ current

float current

◆ current_bus

float current_bus

◆ current_ref

int16_t current_ref[2]

◆ dual_motor_driver_command_packets

struct dual_motor_driver_command_packet_t dual_motor_driver_command_packets[N_SLAVES]

◆ dual_motor_driver_sensor_packets

struct dual_motor_driver_sensor_packet_t dual_motor_driver_sensor_packets[N_SLAVES]

◆ energy

float energy

◆ energy_bus

float energy_bus

◆ error_code

uint8_t error_code

◆ gyroscope

float gyroscope

◆ has_index_been_detected

bool has_index_been_detected[2]

◆ i_sat

int8_t i_sat[2]

◆ imu

struct imu_packet_t imu

◆ index_toggle_bit

bool index_toggle_bit[2]

◆ is_motor_enabled

bool is_motor_enabled[2]

◆ is_motor_ready

bool is_motor_ready[2]

◆ is_system_enabled

bool is_system_enabled

◆ kd

int16_t kd[2]

◆ kp

int16_t kp[2]

◆ last_cmd_index

uint16_t last_cmd_index

◆ linear_acceleration

float linear_acceleration

◆ mode

uint16_t mode

◆ packet_loss

uint16_t packet_loss

◆ position

float position

◆ position_ref

int32_t position_ref[2]

◆ powerboard

struct powerboard_packet_t powerboard

◆ protocol_version

uint16_t protocol_version

◆ sensor_index

uint16_t sensor_index

◆ session_id

uint16_t session_id

◆ spi_connected

uint8_t spi_connected

◆ status

uint16_t status

◆ timestamp

uint16_t timestamp

◆ vbus

uint16_t vbus

◆ velocity

float velocity

◆ velocity_ref

int16_t velocity_ref[2]

◆ voltage_bus

float voltage_bus

◆ vshunt

int16_t vshunt