Man's dearest possession is life. It is given to him but once, and he must live it so as to feel no torturing regrets for wasted years, never know the burning shame of a mean and petty past.
A simple flight controller for fixed-wing plane.
This section provides a list of prerequisites for this project as well as instructions on running it.
- GNU ARM GCC
sudo apt install gcc-arm-none-eabi- Texane stlink to flash, installation guide (v1.7.0 for Ubuntu 20.04):
https://github.com/texane/stlink- FreeRTOS, download source from:
https://github.com/freelamb/stm32f10x_makefile_freertos/tree/master?tab=readme-ov-file- Build the code
make- Flash the code to MCU
make flash- Erase MCU flash
make erase- Ability to communicate with MPU6050
- Read MCRE7v2
- Apply Kalman filter to estimate angle from MPU6050
- Control brushless and servo motor
- Implement PID algorithm for outer loop (angle error correction)
- Implement PID algorithm for inner loop (angular rate error correction)
- Implement normal flight mode besides balancing mode
- Add GPS: change status to pending because neo 7m gps cannt be used indoor
- Implement auto takeoff feature
- Implement return to home feature
- st-flash
st-flash: symbol lookup error: st-flash: undefined symbol: stlink_fwrite_option_bytes_32bit
How to fix:
which st-flash
rm -rf st-flash bin folderInstall st-flash from beginning:
it clone https://github.com/stlink-org/stlink.git
cd stlink
git checkout v1.7.0
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make -j$(nproc)
sudo make install
sudo ldconfig
