Refactor and clean up lots of code.

This commit is contained in:
2021-08-01 17:53:09 -04:00
parent 94c374fcf4
commit a4d79c9826
9 changed files with 30 additions and 32 deletions

View File

@ -1,14 +1,15 @@
// functions that execute comprehensive control schemes.
// Provides stabilization functions, including Hover.
//
// These typically assume a global variable 'done' that will be
// set externally when they should return.
// Must define a global variable 'done', which can be set to true to cancel
// control functions.
//
// Do not include both this and stabilize_rocket.ks in one program.
// Helicopter-style point stability control.
// Hover, ascend, or descend at a fixed rate.
// Adjusts the throttle to control ascent or descent.
// Adjusts pitch and roll to maintain zero lateral velocity.
function PointStabilizeH {
function Hover {
parameter vertSpeed is 0.0.
set done to false.

View File

@ -1,10 +1,12 @@
// Provides stabilization functions, including Hover.
// Control functions can be canceled by actuating Action Group 9.
//
// Must define a global variable 'done', which can be set to true to cancel
// control functions.
//
// Do not include both this and stabilize_helicopter.ks in one program.
// Stabilizes a rocket relative to the surface, with optional vertical
// velocity. Do not include both this and stabilize_helicopter.ks in one
// program.
// velocity.
function Hover {
parameter vertSpeed is 0.0.