-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Rotorcraft guided mode #1457
Rotorcraft guided mode #1457
Conversation
d438fb7
to
b44b160
Compare
So currently you can "goto" a position and specify a frame in flags (first 4 bits):
Should we add velocity to this message as well? Either specify in the flags that some/all fields now are interpreted as velocity or add additional velocity fields? Feedback on naming, what fields we want to have in the message, etc. welcome. |
Also do we want an RC_THRUST_LIMIT in GUIDED mode? |
As for my wish for a velocity mode: |
meant for controlling the rotorcraft via external input (from a module or datalink message) Currently positions mode only: - specify frame via first 4 bits in flags: - 0x0: LOCAL_NED - 0x1: LOCAL_OFFSET_NED - 0x2: BODY_NED - 0x3: BODY_OFFSET_NED
5402839
to
4b8d817
Compare
@gautierhattenberger @dewagter what do you think of this? Are the |
I don't think I'll have time to implement the velocity mode before v5.8, but the messages is meant to allow for that as well... |
This is indeed really useful. As long as we can add more input types later I guess it is fine. I don't have a strong opinion on the API right now, hard to tell without actually using it. The only thing I can see is that choosing a name really close the the mavlink name might be confusing if we start using both message system. But it is probably not a big deal... |
I am working on an outdoor multi-MAV light display for an event in February. This might be a very useful feature/capability for that application. I will try and give it a go in the next few weeks. |
@gautierhattenberger any ideas on a good message name then? |
maybe |
Jep. |
An option to avoid duplicating messages is to use the |
So should we do this via a dedicated ground message, |
4b8d817
to
93b7bae
Compare
Ok, renamed message to |
I'm fine with this |
Rotorcraft guided mode Set the autopilot mode to GUIDED and then send the GUIDED_SETPOINT_NED message to "goto" a position: currently you can specify a frame in flags (first 4 bits): - 0x0: LOCAL_NED, position in local NED frame - 0x1: LOCAL_OFFSET_NED, position relative to where the vehicle currently is in NED - 0x2: BODY_NED, same as LOCAL_NED for position - 0x3: BODY_OFFSET_NED, position relative to vehicle pos AND heading (so X=forward, Y=right, Z=down)
Meant for controlling the rotorcraft via external input (e.g. POSITION_TARGET_LOCAL_NED datalink message)
Could also be used for mavlink:
http://mavlink.org/messages/common#SET_POSITION_TARGET_LOCAL_NED