Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added yaw value in console output #1537

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions MAVProxy/modules/mavproxy_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, mpstate):
mpstate.console.set_status('Thr', 'Thr ---', row=2)
mpstate.console.set_status('Roll', 'Roll ---', row=2)
mpstate.console.set_status('Pitch', 'Pitch ---', row=2)
mpstate.console.set_status('Yaw', 'Yaw ---', row=2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already show 'Hdg' for heading, it should have the same information

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right, Hdg and Yaw are similar, just that as Hdg isn't in degrees, so I added yaw specifically for it.

mpstate.console.set_status('Wind', 'Wind ---/---', row=2)
mpstate.console.set_status('WP', 'WP --', row=3)
mpstate.console.set_status('WPDist', 'Distance ---', row=3)
Expand Down Expand Up @@ -457,6 +458,7 @@ def update_flight_time_from_vfr_hud(self, msg):
def handle_attitude(self, msg):
self.console.set_status('Roll', 'Roll %u' % math.degrees(msg.roll))
self.console.set_status('Pitch', 'Pitch %u' % math.degrees(msg.pitch))
self.console.set_status('Yaw', 'Yaw %u' % math.degrees(msg.yaw))

def handle_sys_status(self, msg):
master = self.master
Expand Down