Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rust-mavlink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
MAVLink
rust-mavlink
Commits
b81a2a05
Commit
b81a2a05
authored
2 years ago
by
Antonio Sanjurjo C
Committed by
Patrick José Pereira
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update lib.rs comments
Fix wrong links formatting
parent
6757815e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib.rs
+4
-4
4 additions, 4 deletions
src/lib.rs
with
4 additions
and
4 deletions
src/lib.rs
+
4
−
4
View file @
b81a2a05
...
@@ -209,7 +209,7 @@ pub fn read_versioned_msg<M: Message, R: Read>(
...
@@ -209,7 +209,7 @@ pub fn read_versioned_msg<M: Message, R: Read>(
}
}
#[derive(Debug,
Copy,
Clone,
PartialEq,
Eq)]
#[derive(Debug,
Copy,
Clone,
PartialEq,
Eq)]
// Follow protocol definition: https://mavlink.io/en/guide/serialization.html#v1_packet_format
// Follow protocol definition:
`<
https://mavlink.io/en/guide/serialization.html#v1_packet_format
>`
pub
struct
MAVLinkV1MessageRaw
([
u8
;
1
+
Self
::
HEADER_SIZE
+
255
+
2
]);
pub
struct
MAVLinkV1MessageRaw
([
u8
;
1
+
Self
::
HEADER_SIZE
+
255
+
2
]);
impl
Default
for
MAVLinkV1MessageRaw
{
impl
Default
for
MAVLinkV1MessageRaw
{
...
@@ -319,7 +319,7 @@ impl MAVLinkV1MessageRaw {
...
@@ -319,7 +319,7 @@ impl MAVLinkV1MessageRaw {
}
}
/// Return a raw buffer with the mavlink message
/// Return a raw buffer with the mavlink message
/// V1 maximum size is 263 bytes: https://mavlink.io/en/guide/serialization.html
/// V1 maximum size is 263 bytes:
`<
https://mavlink.io/en/guide/serialization.html
>`
pub
fn
read_v1_raw_message
<
R
:
Read
>
(
pub
fn
read_v1_raw_message
<
R
:
Read
>
(
reader
:
&
mut
R
,
reader
:
&
mut
R
,
)
->
Result
<
MAVLinkV1MessageRaw
,
error
::
MessageReadError
>
{
)
->
Result
<
MAVLinkV1MessageRaw
,
error
::
MessageReadError
>
{
...
@@ -371,7 +371,7 @@ pub fn read_v1_msg<M: Message, R: Read>(
...
@@ -371,7 +371,7 @@ pub fn read_v1_msg<M: Message, R: Read>(
const
MAVLINK_IFLAG_SIGNED
:
u8
=
0x01
;
const
MAVLINK_IFLAG_SIGNED
:
u8
=
0x01
;
#[derive(Debug,
Copy,
Clone,
PartialEq,
Eq)]
#[derive(Debug,
Copy,
Clone,
PartialEq,
Eq)]
// Follow protocol definition: https://mavlink.io/en/guide/serialization.html#mavlink2_packet_format
// Follow protocol definition:
`<
https://mavlink.io/en/guide/serialization.html#mavlink2_packet_format
>`
pub
struct
MAVLinkV2MessageRaw
([
u8
;
1
+
Self
::
HEADER_SIZE
+
255
+
2
+
Self
::
SIGNATURE_SIZE
]);
pub
struct
MAVLinkV2MessageRaw
([
u8
;
1
+
Self
::
HEADER_SIZE
+
255
+
2
+
Self
::
SIGNATURE_SIZE
]);
impl
Default
for
MAVLinkV2MessageRaw
{
impl
Default
for
MAVLinkV2MessageRaw
{
...
@@ -505,7 +505,7 @@ impl MAVLinkV2MessageRaw {
...
@@ -505,7 +505,7 @@ impl MAVLinkV2MessageRaw {
}
}
/// Return a raw buffer with the mavlink message
/// Return a raw buffer with the mavlink message
/// V2 maximum size is 280 bytes: https://mavlink.io/en/guide/serialization.html
/// V2 maximum size is 280 bytes:
`<
https://mavlink.io/en/guide/serialization.html
>`
pub
fn
read_v2_raw_message
<
R
:
Read
>
(
pub
fn
read_v2_raw_message
<
R
:
Read
>
(
reader
:
&
mut
R
,
reader
:
&
mut
R
,
)
->
Result
<
MAVLinkV2MessageRaw
,
error
::
MessageReadError
>
{
)
->
Result
<
MAVLinkV2MessageRaw
,
error
::
MessageReadError
>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment