Open hamishwillee opened 9 years ago
@mrpollo You indicated that target_system, target_component, sequence number are handled by the API. As understand it you disagreed with removing them from the API because even though they aren't particularly useful right now (and are not necessarily implemented in Autopilots) there is no reason they might not be useful in future. I see your point.
I'm keeping this open and assigning to you because AFAIK there is still no real purpose for exposing: seq (the mission handling code should always handle this), current and autocontinue are both not used/meaningless and unlikely to ever be useful. If you still think this is not needed, then feel free to close.
The Command object is, I believe, a thin wrapper around a mavutil.mavlink.MAVLink_mission_item_message. It allows you to create a command object like this:
The values of the parameters are the same as the mavutil.mavlink.MAVLink_mission_item_message and I believe this to be a bug.
The problem is that I don't believe that most of these can or should be set by the user. It may be that they are already correctly set by the system, but IMO they should also be hidden. If we can't hide them we need to clearly state what values can be set, and this is not documented anywhere!
Specifically
So in summary, lets hide target_system, target_component, seq, current, autocontinue from the API.