Closed stenbergd closed 9 years ago
Commented out old code and made the program build and run on the board.
Gradually, the old Std Periph Lib code will be migrated (and improved).
Most of the motor control code has already been migrated. (This is done in the HAL migration branch).
The periodic control timer code should be called from an RTOS thread instead of from a timer ISR, so that needs to be kept in mind when going over that code.
Motor control has been done.
Receiver code in progress (quite far along).
What remains? Sensor reading Control allocation
Done. (Older code will be reused/replaced, commented out for now)
Current code is written for the old Std Peripheral Library, which is no longer maintained or recommended for new applications.
Instead, the STM32Cube library is recommended.
Get acquainted with it and migrate old code to use the new library functions instead.
Perhaps even make use of the STM32CubeMX windows app, which help developers calculate clocks, prevent I/O conflicts and even does some auto-code generation of peripheral initialiation.