Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dev-f303 FastPWM3
Config/user_config.h
- Committer:
- benkatz
- Date:
- 2018-04-13
- Revision:
- 37:c0f352d6e8e3
- Parent:
- 28:8c7e29f719c5
- Child:
- 51:6cd89bd6fcaa
File content as of revision 37:c0f352d6e8e3:
/// Values stored in flash, which are modifieable by user actions ///
#ifndef USER_CONFIG_H
#define USER_CONFIG_H
#define E_OFFSET __float_reg[0] // Encoder electrical offset
#define M_OFFSET __float_reg[1] // Encoder mechanical offset
#define I_BW __float_reg[2] // Current loop bandwidth
#define TORQUE_LIMIT __float_reg[3] // Torque limit (current limit = torque_limit/(kt*gear ratio))
#define THETA_MIN __float_reg[4] // Minimum position setpoint
#define THETA_MAX __float_reg[5] // Maximum position setpoint
#define PHASE_ORDER __int_reg[0] // Phase swapping during calibration
#define CAN_ID __int_reg[1] // CAN bus ID
#define CAN_MASTER __int_reg[2] // CAN bus "master" ID
#define CAN_TIMEOUT __int_reg[3] // CAN bus timeout period
#define ENCODER_LUT __int_reg[5] // Encoder offset LUT - 128 elements long
extern float __float_reg[];
extern int __int_reg[];
#endif