Add tones, including a launch countdown sequence.

This commit is contained in:
Anna Rose Wiggins 2021-08-29 17:26:56 -04:00
parent 9623a4a869
commit 2601db8fd4
3 changed files with 39 additions and 1 deletions

View file

@ -1,6 +1,7 @@
RunOncePath("lib/throttle").
RunOncePath("lib/navigation").
RunOncePath("lib/navball").
RunOncePath("lib/sound").
// Calculate the direction to lock during ascent.
function getClampedDir {
@ -43,9 +44,10 @@ function Launch {
// Countdowns are cute.
print "Initiating automated launch sequence.".
PlayCountdown().
from { local x is 5. } until x = 0 step { set x to x - 1. } do {
print "..." + x.
wait 0.5.
wait 1.0.
}
// staging logic. Stage as many times as needed until we finish ascent.