4.11. Miscellaneous¶
A few other modules don’t have anything directly to do with the behavior of the MCAF but contribute to areas like math routines.
4.11.1. Implementation Notes¶
4.11.1.1. Modules¶
Module | Files | Description | Comments |
---|---|---|---|
parameters/motor_params |
parameters/motor_params.h |
Motor parameters (including R, L, Ke, J, etc.) | |
parameters/operating_params |
parameters/operating_params.h |
Operating parameters such as speed ranges and slew rates | |
parameters/timing_params |
parameters/timing_params.h |
various timing parameters | |
filter |
filter.h filter_types.h |
First order low-pass and high-pass filters | |
math_asm |
math_asm.h math_asm.s |
Utility math routines | This contains an assembly implementation of a Q15 fixed-point square root
|
motor_control_function_mapping |
motor_control_function_mapping.h |
||
timing |
timing.h |
Utility routines for timing | |
units |
units.h |
C typedef indirections indicating engineering unit types (voltage, current, etc.) | |
util |
util.h |
Miscellaneous utility and math functions | Contains numerous inline utility functions with the prefix Essentially all small functions that had potential for reuse were refactored and placed in this module. |