diff --git a/Makefile b/Makefile index 814e8fd..1ab02cf 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ core .core: libs .libs: arduino-cli lib update-index arduino-cli lib install "FlixPeriph" - arduino-cli lib install "MAVLink"@2.0.25 + arduino-cli lib install "MAVLink"@2.0.33 touch .libs upload_proxy: .core .libs diff --git a/docs/usage.md b/docs/usage.md index fee4381..c7ab7eb 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -51,7 +51,7 @@ Beginners can [download the sources as a ZIP archive](https://github.com/okalach 3. Install ESP32 core, version 3.3.10. See the [official Espressif's instructions](https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide) on installing ESP32 Core in Arduino IDE. 4. Install the following libraries using [Library Manager](https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-installing-a-library): * `FlixPeriph`, the latest version. - * `MAVLink`, version 2.0.25. + * `MAVLink`, version 2.0.33. 5. Open the `flix/flix.ino` sketch from downloaded firmware sources in Arduino IDE. 6. Connect your ESP32 board to the computer and choose correct board type in Arduino IDE (*WEMOS D1 MINI ESP32* for ESP32 Mini, *ESP32S3 Dev Module* for ESP32-S3 Super Mini) and the port. 7. Set *Tools* ⇒ *Core Debug Level* to *Error* to see the errors in the serial console. diff --git a/flix/mavlink.ino b/flix/mavlink.ino index 51dd0a4..be90f9a 100644 --- a/flix/mavlink.ino +++ b/flix/mavlink.ino @@ -32,7 +32,7 @@ void sendMavlink() { uint32_t time = t * 1000; if (telemetrySlow) { - mavlink_msg_heartbeat_pack(mavlinkSysId, MAV_COMP_ID_AUTOPILOT1, &msg, MAV_TYPE_QUADROTOR, MAV_AUTOPILOT_GENERIC, + mavlink_msg_heartbeat_pack(mavlinkSysId, MAV_COMP_ID_AUTOPILOT1, &msg, MAV_TYPE_QUADROTOR, MAV_AUTOPILOT_FLIX, (armed ? MAV_MODE_FLAG_SAFETY_ARMED : 0) | ((mode == STAB) ? MAV_MODE_FLAG_STABILIZE_ENABLED : 0) | ((mode == AUTO) ? MAV_MODE_FLAG_AUTO_ENABLED : MAV_MODE_FLAG_MANUAL_INPUT_ENABLED),