afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

Migrate code to STM32CubeF3 library #15

Closed stenbergd closed 9 years ago

stenbergd commented 9 years ago

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.

stenbergd commented 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.

stenbergd commented 9 years ago

Motor control has been done.

Receiver code in progress (quite far along).

What remains? Sensor reading Control allocation

stenbergd commented 9 years ago

Done. (Older code will be reused/replaced, commented out for now)