A waypoint object. This object encodes a single mission item command. The set of commands that are supported by ArduPilot in Copter, Plane and Rover (along with their parameters) are listed in the wiki article `MAVLink Mission Command Messages (MAV_CMD) <http://planner.ardupilot.co
| 2565 | |
| 2566 | |
| 2567 | class Command(mavutil.mavlink.MAVLink_mission_item_message): |
| 2568 | """ |
| 2569 | A waypoint object. |
| 2570 | |
| 2571 | This object encodes a single mission item command. The set of commands that are supported |
| 2572 | by ArduPilot in Copter, Plane and Rover (along with their parameters) are listed in the wiki article |
| 2573 | `MAVLink Mission Command Messages (MAV_CMD) <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/>`_. |
| 2574 | |
| 2575 | For example, to create a `NAV_WAYPOINT <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/#mav_cmd_nav_waypoint>`_ command: |
| 2576 | |
| 2577 | .. code:: python |
| 2578 | |
| 2579 | cmd = Command(0,0,0, mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT, |
| 2580 | mavutil.mavlink.MAV_CMD_NAV_WAYPOINT, 0, 0, 0, 0, 0, 0,-34.364114, 149.166022, 30) |
| 2581 | |
| 2582 | :param target_system: This can be set to any value |
| 2583 | (DroneKit changes the value to the MAVLink ID of the connected vehicle before the command is sent). |
| 2584 | :param target_component: The component id if the message is intended for a particular component within the target system |
| 2585 | (for example, the camera). Set to zero (broadcast) in most cases. |
| 2586 | :param seq: The sequence number within the mission (the autopilot will reject messages sent out of sequence). |
| 2587 | This should be set to zero as the API will automatically set the correct value when uploading a mission. |
| 2588 | :param frame: The frame of reference used for the location parameters (x, y, z). In most cases this will be |
| 2589 | ``mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT``, which uses the WGS84 global coordinate system for latitude and longitude, but sets altitude |
| 2590 | as relative to the home position in metres (home altitude = 0). For more information `see the wiki here |
| 2591 | <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/#frames_of_reference>`_. |
| 2592 | :param command: The specific mission command (e.g. ``mavutil.mavlink.MAV_CMD_NAV_WAYPOINT``). The supported commands (and command parameters |
| 2593 | are listed `on the wiki <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/>`_. |
| 2594 | :param current: Set to zero (not supported). |
| 2595 | :param autocontinue: Set to zero (not supported). |
| 2596 | :param param1: Command specific parameter (depends on specific `Mission Command (MAV_CMD) <http://planner.ardupilot.com/wiki/common-mavlink-mission-command-messages-mav_cmd/>`_). |
| 2597 | :param param2: Command specific parameter. |
| 2598 | :param param3: Command specific parameter. |
| 2599 | :param param4: Command specific parameter. |
| 2600 | :param x: (param5) Command specific parameter used for latitude (if relevant to command). |
| 2601 | :param y: (param6) Command specific parameter used for longitude (if relevant to command). |
| 2602 | :param z: (param7) Command specific parameter used for altitude (if relevant). The reference frame for altitude depends on the ``frame``. |
| 2603 | |
| 2604 | """ |
| 2605 | pass |
| 2606 | |
| 2607 | |
| 2608 | class CommandSequence(object): |
no outgoing calls