You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Use the Mavlink Inspector in QGroundControl and observe the value for the
ALTCTL mode in the upper word. The main branch of the PX4 code base was used
on a Pixhawk board.
What is the expected output? What do you see instead?
The current code will only display a flight mode of "stab" for all flight modes
of the PX4 main branch. The current minimosd-extra source code uses the lower
word of the custom mode, which is zero for all flight modes. See below for a
code change which resolved the problem.
What version of the product are you using? On what operating system?
r727
Please provide any additional information below.
I have included a code change below which resolved the problem for me:
// apm_mav_type = mavlink_msg_heartbeat_get_type(&msg);
// osd_mode = mavlink_msg_heartbeat_get_custom_mode(&msg);
// JYW: The osd_mode is stored in the upper word in the PX4 code.
osd_mode = (uint8_t)(mavlink_msg_heartbeat_get_custom_mode(&msg) >> 16);
// osd_mode = (uint8_t)mavlink_msg_heartbeat_get_custom_mode(&msg);
Original issue reported on code.google.com by [email protected] on 6 Apr 2015 at 12:29
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 6 Apr 2015 at 12:29The text was updated successfully, but these errors were encountered: