Skip to content

Commit

Permalink
mavftp wip'
Browse files Browse the repository at this point in the history
mavftp: make usable and useful

- removed unused MAVProxy imports (no longer dependent on MAVProxy)
- added `FTPUser` class for interacting conveniently via mavftp
   - added `list` method, which returns the requested files list
   - added `get` method, which gets and saves a requested file
   - added 'params' method, which gets, parses, and saves a parameter file
- added CLI to access all available commands
- used some f-strings, and `subparsers.add_parser(required)`, so requires Python >= 3.7

fix list command

higher timeout

use individual timeouts for messages and whole operation

increase burst size for moar speed

whatever

use idle time for timeout

navigation works

works

sorta works

wip

wip

add endpoint

create dir

add service

install libfuse2

wip

linting
  • Loading branch information
Williangalvani committed May 9, 2024
1 parent de860af commit 112ab26
Show file tree
Hide file tree
Showing 7 changed files with 1,265 additions and 1 deletion.
9 changes: 9 additions & 0 deletions core/services/ardupilot_manager/ArduPilotManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,15 @@ async def start_mavlink_manager(self, device: Endpoint) -> None:
persistent=True,
protected=True,
),
Endpoint(
name="MavFTP",
owner=self.settings.app_name,
connection_type=EndpointType.UDPClient,
place="127.0.0.1",
argument=14555,
persistent=True,
protected=True,
),
]
for endpoint in default_endpoints:
try:
Expand Down
1 change: 1 addition & 0 deletions core/services/install-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ SERVICES=(
ping
versionchooser
wifi
mavftp
)

# We need to install loguru, appdirs and pydantic since they may be used inside setup.py
Expand Down
Loading

0 comments on commit 112ab26

Please sign in to comment.