Model-predictive control on resource-constrained microcontrollers
If you have any questions related to the solver, visit the GitHub Discussions page. This guarantees accessibility for everyone.
The documentation is available at tinympc.org
- On terminal, clone this repo
git clone https://github.com/TinyMPC/TinyMPC.git
- Navigate to root directory and run
mkdir build && cd build
- Run CMake configure step
cmake ../
- Build TinyMPC
make
- Run the
quadrotor_hovering
example
./examples/quadrotor_hovering
- Run the
codegen_cartpole
example then follow the same building steps inside that directory
./examples/codegen_cartpole
If you are using TinyMPC, we encourage you to
- Cite the related papers,
- Put a star on this repository.
Excited to hear your TinyMPC success stories—share them with us!
Please report any issues via the Github issue tracker. All types of issues are welcome including bug reports, documentation typos, feature requests and so on.
Numerical benchmarks against other solvers on MCUs are available here.