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
Copter: Add an element of NAV_CONTROLLER_OUTPUT to ZIGZAG mode #17456
Copter: Add an element of NAV_CONTROLLER_OUTPUT to ZIGZAG mode #17456
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this much parameters for optional notifications is a no go for me
@khancyr san.
|
a4f8daa
to
afb1c47
Compare
@khancyr san. |
afb1c47
to
2243b49
Compare
This information can be conveyed in the Implement
on mode_zigzag instead. This information is presented in the MAVProxy interface you've pasted in anbove. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use NAV_CONTROLLER_OUTPUT
instead.
@peterbarker san. I would change it to NAV_CONTROLLER_OUTPUT. |
2243b49
to
05857b9
Compare
I added the following methods.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, that is much better !
Much nicer :-) One caveat - we send the What this means is that while being piloted in manual mode the distance-to-waypoint message will update to grow - as we're moving away from the previous target. Still, this is much better than statustexts :-) |
I'm not super keen on how it points towards the last waypoint when the pilot is flying the manually flying the vehicle. I think we need to find a way so that the GCSs (especially MP) don't show the line pointing back to the last waypoint. Could you try setting the distance to zero and see how the GCSs handle this? |
uint32_t wp_distance() const override { return wp_nav->get_wp_distance_to_destination(); } | ||
int32_t wp_bearing() const override { return wp_nav->get_wp_bearing_to_destination(); } | ||
float crosstrack_error() const override { return wp_nav->crosstrack_error(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should send back zero for all of these while in the pilot-controlled aspect of zigzag.
@muramura hello, could you address Peter request ? |
closed by #23327 |
The distance from point A to point B in ZIGZAG mode will be several tens of meters to several hundred meters.
In this case, the operator will not know until the WP is reached.
In Japan, the assistant will notify the distance between the WP and the vehicle by transceiver.
The auxiliary notifies 10 meters, 5 meters, and 0 meters before the WP.
I would like to add this notification to ZIGZAG.
AFTER: