boostbackController

BoostbackController is a vector oriented controller, it contains methods that will guide your rocket during so called boostback maneuver.

Table of contents:

Constructing

parameters type default Description
ldata landingDataModel - landingDataModel object that constructed with desired landing position
errorScaling* float 1 How sensitive the controller is to error

* optional parameters

Public methods

public methods return type Description
getSteering() Direction returns steering direction
getThrottle() Float returns throttle precentage
completed() Boolean is current impact position in proximity to desired landing position?
passControl(bool) None passes control

getSteering()

No parameters

Returns steering direction.


getThrottle()

No parameters

Returns throttle percentage.


completed()

No parameters

By default returns if current impact position is in proximity of desired landing position.


passControl(bool)

Parameters:

  • isUnlocking:Boolean -> should throttle and steering be unlocked?

Takes control over both steering and throttle until completed() returns true.


Code examples


// defining landingDataModel
local ldata is landingDataModel(target:geoposition).

// contructing boostbackController without optional parameter
local boostback is boostbackController(ldata).

// passing control
boostback["passControl"]().
// boostback completed

// defining landingDataModel
local ldata is landingDataModel(target:geoposition).

// contructing boostbackController without optional parameter
local boostback is boostbackController(ldata).

// manually accessing control
lock throttle to boostback["getThrottle"]().
lock steering to boostback["getSteering"]().

wait until boostback["completed"]().
// boostback completed