mirror of
https://github.com/okalachev/flix.git
synced 2026-09-05 16:00:56 +00:00
Use new autopilot value for heartbeats - MAV_AUTOPILOT_FLIX
MAVLink-Arduino@2.0.33
This commit is contained in:
@@ -28,7 +28,7 @@ core .core:
|
||||
libs .libs:
|
||||
arduino-cli lib update-index
|
||||
ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=1 arduino-cli lib install --git-url 'https://github.com/okalachev/flixperiph.git#dev'
|
||||
arduino-cli lib install "MAVLink"@2.0.25
|
||||
arduino-cli lib install "MAVLink"@2.0.33
|
||||
touch .libs
|
||||
|
||||
upload_proxy: .core .libs
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
+1
-1
@@ -33,7 +33,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),
|
||||
|
||||
Reference in New Issue
Block a user