Refactor and clean up lots of code.
This commit is contained in:
@ -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.
|
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user