mavcom


Namemavcom JSON
Version 1.1.7 PyPI version JSON
download
home_page
SummaryA python package that creates a simplified programming interface for controlling Mavlink-capable flight controllers
upload_time2023-10-14 11:59:23
maintainer
docs_urlNone
author
requires_python>=3.9
licenseMIT License Copyright (c) 2023 Mavscient Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords mavlink drone drones pymavlink dronekit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MAVCOM

### Mavlink Communicator

Provides a simplified python interface for controlling Mavlink capable flight controllers.

## Installation

```pip install mavcom```

## Basic Usage

This is an example of how to use Mavcom with a simulated vehicle. To connect to a flight controller, you will most likely use UART0, therefore the connection path will instead be "/dev/ttyS0".

Run SITL:

```sim_vehicle.py -v ArduCopter```

```python
from mavcom.mavcontrol import Mavcom
import time

vehicle = Mavcom(
    connection_path = "127.0.0.1:14550",
)

vehicle.start()

while not vehicle.ready:
    print("Waiting for vehicle to initialise...")
    time.sleep(1)

vehicle.motors_armed = True
while not vehicle.motors_armed:
    print("Waiting for motors to spin up...")
    time.sleep(1)
    
vehicle.flight_mode = "GUIDED"
vehicle.takeoff(alt=10)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "mavcom",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "mavlink,drone,drones,pymavlink,dronekit",
    "author": "",
    "author_email": "Mavscient <mavscient@xee4c.33mail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a7/a9/bef8c2d356c465f9e0178a673ae07254a6baafcb4bff380101ebdf26e6a0/mavcom-1.1.7.tar.gz",
    "platform": null,
    "description": "# MAVCOM\n\n### Mavlink Communicator\n\nProvides a simplified python interface for controlling Mavlink capable flight controllers.\n\n## Installation\n\n```pip install mavcom```\n\n## Basic Usage\n\nThis is an example of how to use Mavcom with a simulated vehicle. To connect to a flight controller, you will most likely use UART0, therefore the connection path will instead be \"/dev/ttyS0\".\n\nRun SITL:\n\n```sim_vehicle.py -v ArduCopter```\n\n```python\nfrom mavcom.mavcontrol import Mavcom\nimport time\n\nvehicle = Mavcom(\n    connection_path = \"127.0.0.1:14550\",\n)\n\nvehicle.start()\n\nwhile not vehicle.ready:\n    print(\"Waiting for vehicle to initialise...\")\n    time.sleep(1)\n\nvehicle.motors_armed = True\nwhile not vehicle.motors_armed:\n    print(\"Waiting for motors to spin up...\")\n    time.sleep(1)\n    \nvehicle.flight_mode = \"GUIDED\"\nvehicle.takeoff(alt=10)\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Mavscient  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A python package that creates a simplified programming interface for controlling Mavlink-capable flight controllers",
    "version": "1.1.7",
    "project_urls": {
        "Homepage": "https://github.com/Vefot/Mavcom"
    },
    "split_keywords": [
        "mavlink",
        "drone",
        "drones",
        "pymavlink",
        "dronekit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9607b168da3fa5a0be652e96d8600333c777cd42b6046f772f4f6580a13fb95f",
                "md5": "3bcb097a18324ced58f4eed53aa6b947",
                "sha256": "4f87e32d9b1fbb1515ab84fc0e2c61d46e693209cec09b84bcd3bfa58e8fc299"
            },
            "downloads": -1,
            "filename": "mavcom-1.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3bcb097a18324ced58f4eed53aa6b947",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 13060,
            "upload_time": "2023-10-14T11:59:21",
            "upload_time_iso_8601": "2023-10-14T11:59:21.029474Z",
            "url": "https://files.pythonhosted.org/packages/96/07/b168da3fa5a0be652e96d8600333c777cd42b6046f772f4f6580a13fb95f/mavcom-1.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7a9bef8c2d356c465f9e0178a673ae07254a6baafcb4bff380101ebdf26e6a0",
                "md5": "e1662897a83a290f1ba3d36c1f616f13",
                "sha256": "38685566740f13b146963b8292cb19693e05415f00bd177bf25c851beb18877a"
            },
            "downloads": -1,
            "filename": "mavcom-1.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "e1662897a83a290f1ba3d36c1f616f13",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 13022,
            "upload_time": "2023-10-14T11:59:23",
            "upload_time_iso_8601": "2023-10-14T11:59:23.542262Z",
            "url": "https://files.pythonhosted.org/packages/a7/a9/bef8c2d356c465f9e0178a673ae07254a6baafcb4bff380101ebdf26e6a0/mavcom-1.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-14 11:59:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Vefot",
    "github_project": "Mavcom",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mavcom"
}
        
Elapsed time: 0.17388s