Shao Rui
/
AGV
1
user_config.h@0:571a1835428e, 2021-01-25 (annotated)
- Committer:
- shaorui
- Date:
- Mon Jan 25 08:36:48 2021 +0000
- Revision:
- 0:571a1835428e
1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shaorui | 0:571a1835428e | 1 | // Values stored in flash, which are modifieable by user actions /// |
shaorui | 0:571a1835428e | 2 | |
shaorui | 0:571a1835428e | 3 | #ifndef USER_CONFIG_H |
shaorui | 0:571a1835428e | 4 | #define USER_CONFIG_H |
shaorui | 0:571a1835428e | 5 | |
shaorui | 0:571a1835428e | 6 | |
shaorui | 0:571a1835428e | 7 | #define E_OFFSET __float_reg[0] // Encoder electrical offset |
shaorui | 0:571a1835428e | 8 | #define M_OFFSET __float_reg[1] // Encoder mechanical offset |
shaorui | 0:571a1835428e | 9 | #define ENCODER_LUT __int_reg[5] // Encoder offset LUT - 128 elements long |
shaorui | 0:571a1835428e | 10 | |
shaorui | 0:571a1835428e | 11 | extern float __float_reg[]; |
shaorui | 0:571a1835428e | 12 | extern int __int_reg[]; |
shaorui | 0:571a1835428e | 13 | |
shaorui | 0:571a1835428e | 14 | #endif |