Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
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
Model registry
Analyze
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
Skyward Boardcore
Commits
a8e17f1b
Commit
a8e17f1b
authored
6 years ago
by
Luca Erbetta
Browse files
Options
Downloads
Patches
Plain Diff
[GS] Updated backup ground station
parent
ab927e07
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/homeone/mavlink_client/mavlink_demo_rx.c
+2
-2
2 additions, 2 deletions
scripts/homeone/mavlink_client/mavlink_demo_rx.c
scripts/homeone/mavlink_client/plot.py
+2
-2
2 additions, 2 deletions
scripts/homeone/mavlink_client/plot.py
with
4 additions
and
4 deletions
scripts/homeone/mavlink_client/mavlink_demo_rx.c
+
2
−
2
View file @
a8e17f1b
...
@@ -82,8 +82,8 @@ void handleMavlinkMessage(const mavlink_message_t* msg)
...
@@ -82,8 +82,8 @@ void handleMavlinkMessage(const mavlink_message_t* msg)
switch
(
msg
->
msgid
)
switch
(
msg
->
msgid
)
{
{
case
MAVLINK_MSG_ID_HR_TM
:
case
MAVLINK_MSG_ID_HR_TM
:
fprintf
(
stdout
,
"%d,%f
\n
"
,
(
int
)
mavlink_msg_hr_tm_get_timestamp
(
msg
),
fprintf
(
stdout
,
"%d,%
d,%
f
\n
"
,
(
int
)
mavlink_msg_hr_tm_get_timestamp
(
msg
),
(
float
)
mavlink_msg_hr_tm_get_pressure
(
msg
));
mavlink_msg_hr_tm_get_bitfield_1
(
msg
),
mavlink_msg_hr_tm_get_pressure
(
msg
));
fflush
(
stdout
);
fflush
(
stdout
);
break
;
break
;
default:
default:
...
...
This diff is collapsed.
Click to expand it.
scripts/homeone/mavlink_client/plot.py
+
2
−
2
View file @
a8e17f1b
...
@@ -26,7 +26,7 @@ SAMPLES = 1000
...
@@ -26,7 +26,7 @@ SAMPLES = 1000
def
animate
(
i
,
xs
,
ys
):
def
animate
(
i
,
xs
,
ys
):
line
=
sys
.
stdin
.
readline
()
line
=
sys
.
stdin
.
readline
()
line
=
line
[
0
:
-
2
]
line
=
line
[
0
:
-
2
]
x
,
y
=
line
.
split
(
'
,
'
)
x
,
b
,
y
=
line
.
split
(
'
,
'
)
x
=
float
(
x
)
x
=
float
(
x
)
y
=
float
(
y
)
y
=
float
(
y
)
global
last
global
last
...
@@ -35,7 +35,7 @@ def animate(i, xs, ys):
...
@@ -35,7 +35,7 @@ def animate(i, xs, ys):
xs
.
append
(
x
)
xs
.
append
(
x
)
ys
.
append
(
y
)
ys
.
append
(
y
)
print
(
x
,
y
)
print
(
x
,
y
,
b
)
if
(
len
(
xs
)
>
SAMPLES
):
if
(
len
(
xs
)
>
SAMPLES
):
xs
=
xs
[
-
SAMPLES
:]
xs
=
xs
[
-
SAMPLES
:]
...
...
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