TeensyNanoExoCode
Loading...
Searching...
No Matches
Namespaces | Macros | Variables
Config.h File Reference
#include "Arduino.h"
#include "LogLevels.h"
Include dependency graph for Config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  logging
 
namespace  sync_time
 
namespace  fsr_config
 
namespace  analog
 
namespace  torque_calibration
 
namespace  BLE_times
 
namespace  exo_info
 
namespace  UART_times
 

Macros

#define FIRMWARE_VERSION   0_1_0
 
#define AK_Board_V0_1   1
 
#define AK_Board_V0_3   2
 
#define AK_Board_V0_4   3
 
#define AK_Board_V0_5_1   4
 
#define BOARD_VERSION   AK_Board_V0_3
 
#define REAL_TIME_I2C   1
 
#define LOOP_FREQ_HZ   500
 
#define LOOP_TIME_TOLERANCE   0.1
 
#define USE_SPEED_CHECK   0
 
#define VAL(str)   #str
 
#define TOSTRING(str)   VAL(str)
 

Variables

const LogLevel logging::level = LogLevel::Release
 
const int logging::baud_rate = 115200
 
const unsigned int sync_time::NUM_START_STOP_BLINKS = 1
 
const unsigned int sync_time::SYNC_HALF_PERIOD_US = 125000
 
const unsigned int sync_time::SYNC_START_STOP_HALF_PERIOD_US = 4 * SYNC_HALF_PERIOD_US
 
const float fsr_config::FSR_UPPER_THRESHOLD = 0.25
 
const float fsr_config::FSR_LOWER_THRESHOLD = 0.15
 
const float fsr_config::SCHMITT_DELTA = (FSR_UPPER_THRESHOLD - FSR_LOWER_THRESHOLD)/2
 
const float analog::RESOLUTION = 12
 
const float analog::COUNTS = 4096
 
const float torque_calibration::AI_CNT_TO_V = 3.3 / 4096
 
const float torque_calibration::TRQ_V_TO_NM = 53.70
 
const float BLE_times::_status_msg_delay = 1000000
 
const float BLE_times::_real_time_msg_delay = 20000
 
const float BLE_times::_update_delay = 1000
 
const float BLE_times::_poll_timeout = 4
 
const String exo_info::FirmwareVersion = String(TOSTRING(FIRMWARE_VERSION))
 
const String exo_info::PCBVersion = String(TOSTRING(BOARD_VERSION))
 
const String exo_info::DeviceName = String("NULL")
 
const float UART_times::UPDATE_PERIOD = 1000
 
const float UART_times::COMS_MCU_TIMEOUT = 5000
 
const float UART_times::CONT_MCU_TIMEOUT = 1000
 
const float UART_times::CONFIG_TIMEOUT = 8000
 

Macro Definition Documentation

◆ AK_Board_V0_1

#define AK_Board_V0_1   1

◆ AK_Board_V0_3

#define AK_Board_V0_3   2

◆ AK_Board_V0_4

#define AK_Board_V0_4   3

◆ AK_Board_V0_5_1

#define AK_Board_V0_5_1   4

◆ BOARD_VERSION

#define BOARD_VERSION   AK_Board_V0_3

◆ FIRMWARE_VERSION

#define FIRMWARE_VERSION   0_1_0

◆ LOOP_FREQ_HZ

#define LOOP_FREQ_HZ   500

◆ LOOP_TIME_TOLERANCE

#define LOOP_TIME_TOLERANCE   0.1

◆ REAL_TIME_I2C

#define REAL_TIME_I2C   1

◆ TOSTRING

#define TOSTRING (   str)    VAL(str)

◆ USE_SPEED_CHECK

#define USE_SPEED_CHECK   0

◆ VAL

#define VAL (   str)    #str