Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Distributed Autonomous Networked Control Lab
MicroCART
Commits
a4383818
Commit
a4383818
authored
7 years ago
by
ucart
Browse files
Options
Downloads
Patches
Plain Diff
found some solid values for take off and touch down
parent
4e99f95b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
groundStation/scripts/take_off.sh
+1
-1
1 addition, 1 deletion
groundStation/scripts/take_off.sh
groundStation/scripts/touch_down.sh
+8
-4
8 additions, 4 deletions
groundStation/scripts/touch_down.sh
with
9 additions
and
5 deletions
groundStation/scripts/take_off.sh
+
1
−
1
View file @
a4383818
...
...
@@ -10,7 +10,7 @@ sleep 2
./setsource
"T trim add"
"summand 1"
"Altitude PID"
"Correction"
#./setsource 14 0 8 0
./setparam
"Throttle trim"
0 0.
45
./setparam
"Throttle trim"
0 0.
5
#./setparam 13 0 0.45
./setparam
"Alt Setpoint"
0
-0
.88
#./setparam 11 0 -0.5
This diff is collapsed.
Click to expand it.
groundStation/scripts/touch_down.sh
+
8
−
4
View file @
a4383818
#! /bin/bash
cut_off
=
"-0.
2
5"
cut_off
=
"-0.
1
5"
regex
=
'[+-]?[0-9]+\.?[0-9]*$'
...
...
@@ -8,9 +8,13 @@ regex='[+-]?[0-9]+\.?[0-9]*$'
alt
=
"
$(
echo
"
$(
./getparam
'VRPN Alt'
0
)
"
|
grep
-Eo
"
$regex
"
)
"
while
awk
'BEGIN { if ('
$alt
'>='
$cut_off
') {exit 1}}'
;
do
alt
=
"
$(
echo
"
$(
./getparam
'VRPN Alt'
0
)
"
|
grep
-Eo
"
$regex
"
)
"
./setparam
'Alt Setpoint'
0
$(
bc
<<<
"
$alt
+ 0.1"
)
echo
"
$alt
too high"
if
((
$(
bc
<<<
"
$alt
< -0.5"
)
))
;
then
alt
=
"
$(
echo
"
$(
./getparam
'VRPN Alt'
0
)
"
|
grep
-Eo
"
$regex
"
)
"
./setparam
'Alt Setpoint'
0
$(
bc
<<<
"
$alt
+ 0.15"
)
else
alt
=
"
$(
echo
"
$(
./getparam
'VRPN Alt'
0
)
"
|
grep
-Eo
"
$regex
"
)
"
./setparam
'Alt Setpoint'
0
$(
bc
<<<
"
$alt
+ 0.25"
)
fi
sleep
.5
done
...
...
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