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
b28eb6ce
Commit
b28eb6ce
authored
7 years ago
by
Peter Thedens
Browse files
Options
Downloads
Patches
Plain Diff
minor comment updates to CI tests
parent
4e6be93f
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
quad/scripts/ci-tests/test_memory_integrity.rb
+1
-1
1 addition, 1 deletion
quad/scripts/ci-tests/test_memory_integrity.rb
quad/scripts/ci-tests/test_safety_checks.rb
+5
-4
5 additions, 4 deletions
quad/scripts/ci-tests/test_safety_checks.rb
with
6 additions
and
5 deletions
quad/scripts/ci-tests/test_memory_integrity.rb
+
1
−
1
View file @
b28eb6ce
...
...
@@ -77,7 +77,7 @@ ensure
Process
.
kill
(
2
,
quad
)
sleep
1
# wait for valgrind to write to file
# Process the valgrind file
# Process the valgrind file
, look for number of errors
file
=
File
.
open
(
"./valgrind.out"
)
everything
=
file
.
readlines
last_line
=
everything
.
last
...
...
This diff is collapsed.
Click to expand it.
quad/scripts/ci-tests/test_safety_checks.rb
+
5
−
4
View file @
b28eb6ce
...
...
@@ -51,7 +51,7 @@ Timeout::timeout(60) {
check_led
(
0
,
"LED was on at startup! It should be off so that we can verify when the quad is ready."
)
puts
(
"Check that increasing the throttle does nothing to motors"
)
#
(because
gear is still off
)
#
Motors should not engage when
gear is still off
for
i
in
(
THROTTLE_MIN
..
THROTTLE_MAX
).
step
(
0.01
)
set_throttle
(
i
)
check_motors_are_off
"Was able to turn on motors with GEAR off! Yikes!"
...
...
@@ -61,6 +61,7 @@ Timeout::timeout(60) {
puts
(
"Check that flipping gear to 1 while throttle is high does nothing"
)
# (motors should still be off, LED should still be off)
set_gear
GEAR_ON
sleep
0.01
check_motors_are_off
"Motors turned on by gear while rc throttle was high! How dangerous!"
i
=
THROTTLE_MAX
...
...
@@ -72,12 +73,12 @@ Timeout::timeout(60) {
sleep
0.005
end
#
(swti
ch GEAR
back to
off and bring throttle off
)
#
Swit
ch GEAR off and bring throttle off
set_gear
GEAR_OFF
set_throttle
THROTTLE_MIN
puts
(
"Check that the LED turns on when gear is flipped on"
)
#
(m
otors should still be off because our throttle is low
)
#
M
otors should still be off because our throttle is low
set_gear
GEAR_ON
sleep
0.01
check_motors_are_off
"Motors turned on while throttle was low! Yikes!"
...
...
@@ -129,7 +130,7 @@ Timeout::timeout(60) {
sleep
0.01
check_motors_are_off
"Motors didn't turn off when GEAR was switched off! How dangerous!"
#
(
Bring the RC throttle back
down)
# Bring the RC throttle back
to minimum
set_throttle
THROTTLE_MIN
puts
"All safety checks passed."
...
...
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