|
| | GNC () |
| |
| void | setWaypoints (const WaypointList &waypoints) |
| | Set the waypoints for the navigation system.
|
| |
| void | update (const Aircraft &aircraft, float dt) |
| | Update the GNC system state.
|
| |
| bool | computeTrim (Aircraft &aircraft, double Va, double gamma, double R) |
| |
| bool | linearizeAtTrim (Aircraft &drone) |
| |
| void | computeLinearModel (Aircraft &aircraft, const Eigen::VectorXd &Xtrim, const Eigen::VectorXd &Utrim, Eigen::MatrixXd &A_full, Eigen::MatrixXd &B_full, Eigen::MatrixXd &A_lat, Eigen::MatrixXd &B_lat, Eigen::MatrixXd &A_lon, Eigen::MatrixXd &B_lon) |
| |
| const TrimData & | getTrimData () const |
| |
| const Eigen::MatrixXd & | getA () const |
| |
| const Eigen::MatrixXd & | getB () const |
| |
| const Eigen::MatrixXd & | getA_lat () const |
| |
| const Eigen::MatrixXd & | getB_lat () const |
| |
| const Eigen::MatrixXd & | getA_lon () const |
| |
| const Eigen::MatrixXd & | getB_lon () const |
| |
Guidance, Navigation, and Control system for the aircraft.
This class manages the navigation through a list of waypoints and updates control commands based on the current state of the aircraft.
| void GNC::update |
( |
const Aircraft & |
aircraft, |
|
|
float |
dt |
|
) |
| |
Update the GNC system state.
Update the GNC system with the current aircraft state.
This function should be called every simulation step and will process the aircraft state to produce new control commands.
- Parameters
-
| aircraft | The current state of the aircraft. |
| dt | Time step in seconds. |
This function processes the aircraft's current position and determines navigation commands based on the active waypoint. If the aircraft is close enough to the current waypoint, it automatically advances to the next.
- Parameters
-
| aircraft | Current aircraft state. |
| dt | Time step duration in seconds. |