A new maneuver

45 views
Skip to first unread message

Kristian Klausen

unread,
Oct 21, 2015, 2:33:38 PM10/21/15
to LSTS Toolchain
Hi,

I am considering creating a new maneuver for a very specific problem involving landing. I would like to be able to specify two points, and use those in my controller.

Before diving into the Neptus-part of this myselves, could someone give me a brief rundown of the additions I need to do in Neptus to support this? In dune, afaik, these steps would suffice:

 - Define the maneuver IMC message
 - Register the maneuver in the multiplexer, or a seperate task that binds to this maneuver.

Regards,
Kristian

José Pinto

unread,
Oct 26, 2015, 11:41:16 AM10/26/15
to Kristian Klausen, LSTS Toolchain
Dear Kristian,

In Neptus, a Maneuver is a class file deriving from (subclass of) pt.lsts.neptus.mp.Maneuver. This class should implement the interfaces IMCSerialization (serialization as IMC message) and optionally LocatedManeuver (world location attribute).
On top of these interfaces, your class must be able to store and load its parameters from XML. Most of the times it is much simpler to extend some maneuver that already exists (like GotoManeuver).
Afterwards, you should include the XML configuration with the default values to the vehicle's configuration file that will have this maneuver.

A good reference may be looking at a commit that basically adds a new maneuver to Neptus: 

Best regards,
José

--
You received this message because you are subscribed to the Google Groups "LSTS Toolchain" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lsts-toolchai...@googlegroups.com.
Visit this group at http://groups.google.com/group/lsts-toolchain.
To view this discussion on the web visit https://groups.google.com/d/msgid/lsts-toolchain/bd802606-0177-45cb-8805-70bd693629e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages