mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
DSDL definitions for file transfer support were removed. This functionality is certainly needed for the protocol, but it is not going to be implemented in the first order, so there is no point in keeping these (unfinished) types now.
This commit is contained in:
parent
0da3a93ec9
commit
379a19c1b8
@ -1,11 +0,0 @@
|
||||
#
|
||||
# Remote file info.
|
||||
#
|
||||
|
||||
Path path
|
||||
|
||||
---
|
||||
|
||||
Crc crc
|
||||
int64 size
|
||||
Errno result
|
||||
@ -1,17 +0,0 @@
|
||||
#
|
||||
# Remote directory contents.
|
||||
#
|
||||
|
||||
uint32 entry_index
|
||||
Path directory_path
|
||||
|
||||
---
|
||||
|
||||
Errno result
|
||||
|
||||
uint4 ENTRY_TYPE_NONE = 0
|
||||
uint4 ENTRY_TYPE_FILE = 1
|
||||
uint4 ENTRY_TYPE_DIR = 2
|
||||
uint4 entry_type
|
||||
|
||||
Path entry_abs_path
|
||||
@ -1,9 +0,0 @@
|
||||
#
|
||||
# Remote file deletion request.
|
||||
#
|
||||
|
||||
Path path
|
||||
|
||||
---
|
||||
|
||||
Errno result
|
||||
@ -1,15 +0,0 @@
|
||||
#
|
||||
# Read contents of the file from a remote node.
|
||||
# Use cases: Firmware update, log download.
|
||||
#
|
||||
|
||||
int64 offset
|
||||
Path path
|
||||
|
||||
---
|
||||
|
||||
Errno result
|
||||
|
||||
# Empty data means the offset is out of file boundaries.
|
||||
# Non-empty data means the end of file is not reached yet, even if the length is less than max.
|
||||
truncated uint8[<256] data
|
||||
@ -1,11 +0,0 @@
|
||||
#
|
||||
# Initiates file transfer between two nodes.
|
||||
# Use cases: Configuration file replacement, executable update.
|
||||
#
|
||||
|
||||
Path src # On the requesting node
|
||||
Path dst # On the serving node
|
||||
|
||||
---
|
||||
|
||||
Errno result
|
||||
@ -1,16 +0,0 @@
|
||||
#
|
||||
# This service initiates the firmware update procedure.
|
||||
#
|
||||
# Nodes are allowed to explicitly reject this request under some circumstances
|
||||
# (e.g. ESC should reject this if the motor is running).
|
||||
#
|
||||
# If the node accepts the request, initiator will get the response immediately,
|
||||
# before the update process actually begins.
|
||||
#
|
||||
|
||||
Path image_file_remote_path
|
||||
|
||||
---
|
||||
|
||||
Errno result
|
||||
uint8[<64] error_message
|
||||
@ -1,6 +0,0 @@
|
||||
#
|
||||
# File CRC.
|
||||
# Algorithm: CRC-64-WE.
|
||||
#
|
||||
|
||||
uint64 value
|
||||
@ -1,5 +0,0 @@
|
||||
#
|
||||
# File operation result - UNIX errno.
|
||||
#
|
||||
|
||||
int16 value
|
||||
@ -1,7 +0,0 @@
|
||||
#
|
||||
# Encoded FS path (ASCII/UTF8).
|
||||
#
|
||||
|
||||
uint8 SEPARATOR = 47 # ASCII '/'
|
||||
|
||||
uint8[<128] value
|
||||
@ -20,15 +20,6 @@
|
||||
#include <uavcan/protocol/debug/LogMessage.hpp>
|
||||
#include <uavcan/protocol/debug/StartHilSimulation.hpp>
|
||||
#include <uavcan/protocol/debug/KeyValue.hpp>
|
||||
#include <uavcan/protocol/file/Path.hpp>
|
||||
#include <uavcan/protocol/file/Read.hpp>
|
||||
#include <uavcan/protocol/file/Delete.hpp>
|
||||
#include <uavcan/protocol/file/Errno.hpp>
|
||||
#include <uavcan/protocol/file/BeginFirmwareUpdate.hpp>
|
||||
#include <uavcan/protocol/file/List.hpp>
|
||||
#include <uavcan/protocol/file/BeginTransfer.hpp>
|
||||
#include <uavcan/protocol/file/Crc.hpp>
|
||||
#include <uavcan/protocol/file/GetInfo.hpp>
|
||||
|
||||
#include <root_ns_a/Deep.hpp>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user