RCAIDE.Framework.Mission.Common.Conditions
Conditions#
- class Conditions(*args, **kwarg)[source]#
Bases:
Data
Conditions are the magic Data that contains the information about the vehicle in flight. At this point none of the information really exists. What is here are the methods that allow a mission to collect the information.
Assumptions: None
Source: None
- ones_row(cols)[source]#
returns a row vector of ones with given number of columns
Assumptions: None
Source: N/A
Inputs: cols [in]
Outputs: Vector
Properties Used: None
- ones_row_m1(cols)[source]#
returns an N-1 row vector of ones with given number of columns
Assumptions: None
Source: N/A
Inputs: cols [in]
Outputs: Vector
Properties Used: None
- ones_row_m2(cols)[source]#
returns an N-2 row vector of ones with given number of columns
Assumptions: None
Source: N/A
Inputs: cols [int]
Outputs: Vector
Properties Used: None
- expand_rows(rows, override=False)[source]#
Makes a 1-D array the right size. Often used after a mission is initialized to size out the vectors to the right size. Will not overwrite an array if it already exists, unless override is True.
Assumptions: None
Source: N/A
Inputs: rows [int] override [boolean]
Outputs: None
Properties Used: None
- class expanded_array(*args, **kwarg)[source]#
Bases:
Data
This is an array that will expand later when the mission is initialized. It is called specifically by conditions
Assumptions: None
Source: None
- __init__(cols, adjustment)[source]#
Initialization that sets expansion later
Assumptions: None
Source: N/A
Inputs: self cols - columns [int] adjustment - how much smaller [int]
Outputs: N/A
Properties Used: N/A
- resize(rows)[source]#
This function actually completes the resizing. After this it’s no longer an expanded array. That way it doesn’t propogate virally. That means if one wishes to resize later the conditions need to be reset.
Assumptions: None
Source: N/A
Inputs: self rows - rows [int] v - values (really self) [int]
Outputs: np.array - properly sized [array]
Properties Used: N/A