Skip to content
Snippets Groups Projects
Commit b28eb6ce authored by Peter Thedens's avatar Peter Thedens
Browse files

minor comment updates to CI tests

parent 4e6be93f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
# (swtich GEAR back to off and bring throttle off)
# Switch 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")
# (motors should still be off because our throttle is low)
# Motors 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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment