I agree that it’s slightly mad to make the message to send a guided point is just the same as a regular point except for the current field. We should probably have a special mavlink message to say ‘go to here’…maybe there already is one, I’m not really sure. https://pixhawk.ethz.ch/mavlink/
..as for immediately switching to Guided mode automatically, I don’t think that’s particularly bad. We already accept flight mode changes from the ground station so the alternative of forcing the ground station to send two commands instead of one doesn’t seem to make anything better if you ask me.
-Randy
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
> To unsubscribe from this group and stop receiving emails from it, send an email todrones-discu...@googlegroups.com<mailto:drones-discuss+unsubscribe@googlegroups.com>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups "drones-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com<mailto:drones-discuss+unsubscribe@googlegroups.com>.
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes I think Bill’s right. I had a peek at the code and it looks like the vehicle needs to be first switched to Guided before it will accept the position or velocity requests from the companion computer or GCS.
I agree with TedP’s assessment that using the “current” field of the mission-item to designate the mission-item as a guided mode command is a hack. This happened before Tridge and I joined the project but I’m pretty sure it stemmed from a misunderstanding of the MAVLink protocol. The misunderstanding being that the “current” field is meant to indicate that the mission-item is the command that is currently being executed, not that the mission-item should be executed immediately (i.e. currently). We should remove support for accepting mission-items as commands and instead ask all the GCSs to send a command-long which contains the command.
If TedP or someone else wants to take-on making this change we’d very much welcome the Pull Request.
-Randy