Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Fix RC_CHANNELS_SCALED inactive channel values They should be INT16_MAX not UINT16_MAX

Oleg Kalacheva24f039f1dfa
diff --git a/flix/mavlink.ino b/flix/mavlink.ino
index 816534e..44e7005 100644
--- a/flix/mavlink.ino
+++ b/flix/mavlink.ino
@@ -44,7 +44,7 @@ void sendMavlink() {
mavlink_msg_rc_channels_scaled_pack(SYSTEM_ID, MAV_COMP_ID_AUTOPILOT1, &msg, time, 0,
controls[0] * 10000, controls[1] * 10000, controls[2] * 10000,
controls[3] * 10000, controls[4] * 10000, controls[5] * 10000,
- UINT16_MAX, UINT16_MAX, 255);
+ INT16_MAX, INT16_MAX, UINT8_MAX);
sendMessage(&msg);
float actuator[32];