okalachev / flix

Making an ESP32-based quadcopter from scratch
https://t.me/opensourcequadcopter
314 stars 43 forks source link

Dependencies for the MAVLINK library #1

Closed ukhov79 closed 10 months ago

ukhov79 commented 10 months ago

It would be cool to add dependencies for the MAVLINK library: https://github.com/mavlink/c_library_v2

okalachev commented 10 months ago

You're absolutely correct, for now this dependency handling is totally missing. I was thinking about how I would handle it, using git submodules or downloading in Makefile, and now I'm planning to add downloading with the Makefile (I don't like submodules).

okalachev commented 10 months ago

If you want to build with Wi-Fi and MAVLink, you may download MAVLink library manually and put it to the flix directory.

ukhov79 commented 10 months ago

Yes, I did. everything worked perfectly. Thanks! However, my Arduino IDE sometimes refuses to upload code to the board and I have to restart IDE.

okalachev commented 10 months ago

I guess the recommended way to edit this code for experienced developers is using VSCode and console for building and uploading. I have VSCode config files that make IntelliSense work with the Arduino code and the simulation code, I just have not committed them yet (they are not portable enough).

I want to keep full compatibility with Arduino IDE to get to the lowest barrier of entry to study this code. Although it's not the most convenient way.

okalachev commented 10 months ago

@ukhov79, I decided to solve this in a radical way, without using submodules or Makefile downloads. I created an Arduino library that allows to install MAVLink in an easy Arduino way, and utilized it in this project.

So if you can check if it works, that would be helpful.

ukhov79 commented 10 months ago

Great solution! It works!