WSF
P6DofUtils.hpp File Reference
#include "p6dof_export.h"
#include <memory>
#include <string>
#include <vector>
#include "P6DofVehicleData.hpp"
#include "UtVec3dX.hpp"
Include dependency graph for P6DofUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  P6DofMachParamDataTable
struct  P6DofMachParamDataTable::paramDataPair
struct  P6DofMachParamDataTable::machParamDataListPair
class  P6DofMachDataTable
struct  P6DofMachDataTable::machDataPair
class  P6DofTableTool

Namespaces

namespace  P6DofUtils

Enumerations

enum  P6DofUtils::CanFlyAtReturnValue { P6DofUtils::CAN_NOT_FLY , P6DofUtils::CONTROL_FAIL , P6DofUtils::CAN_FLY }

Functions

P6DOF_EXPORT void P6DofUtils::Autotune (P6DofVehicle *aVehicle)
P6DOF_EXPORT void P6DofUtils::CreateAutopilotConfigFile (P6DofVehicle *aVehicle, const std::string &aFilename)
P6DOF_EXPORT std::vector< P6DOF::Pid::TypeP6DofUtils::GetRelevantPids (P6DofVehicle *aVehicle)
P6DOF_EXPORT const P6DOF::SinglePidValueDataP6DofUtils::GetSinglePidData (P6DOF::Pid::Type aPidType, const P6DOF::AutopilotPidGroupValueData &aPidValues)
P6DOF_EXPORT CanFlyAtReturnValue P6DofUtils::CanFlyAt (P6DofVehicle *aObject, double aAltitude_ft, double aVelocity_fps, double aThrottleForward, double aFlapsDown)
P6DOF_EXPORT void P6DofUtils::CreateAutopilotSupportFile (P6DofVehicle *aObject, const std::string &aFilename)
P6DOF_EXPORT void P6DofUtils::CreateAutopilotSupportFileWithMaxMach (P6DofVehicle *aObject, const std::string &aFilename, const double &aMaxMach)
P6DOF_EXPORT void P6DofUtils::CommonCreateAutopilotSupportFile (P6DofTableTool &aTool, const std::string &aFilename)
P6DOF_EXPORT int64_t P6DofUtils::TimeToTime (double aSimTime_sec)
P6DOF_EXPORT double P6DofUtils::TimeToTime (int64_t aSimTime_nanosec)
P6DOF_EXPORT void P6DofUtils::CalcSphericalLatLonAlt (const UtVec3dX &aPos_m, double &aLat_deg, double &aLon_deg, double &aAlt_m)
P6DOF_EXPORT void P6DofUtils::CalcSphericalVecToNED (const UtVec3dX &aPos, const UtVec3dX &aSphericalVec, UtVec3dX &aNEDVec)
P6DOF_EXPORT void P6DofUtils::CalcUnitVectors (const UtDCM &aDCM, UtVec3dX &aUnitVecX, UtVec3dX &aUnitVecY, UtVec3dX &aUnitVecZ)
P6DOF_EXPORT void P6DofUtils::CalcLocalNEDVectors (const UtVec3dX &aPos, UtVec3dX &aLocalNorth, UtVec3dX &aLocalEast, UtVec3dX &aLocalDown)
P6DOF_EXPORT void P6DofUtils::CalcLocalAngles (const UtVec3dX &aLocalNorth, const UtVec3dX &aLocalEast, const UtVec3dX &aLocalDown, const UtVec3dX &aUnitVecX, const UtVec3dX &aUnitVecZ, double &aLocalYaw_rad, double &aLocalPitch_rad, double &aLocalRoll_rad)
P6DOF_EXPORT void P6DofUtils::CalcSphericalWCSAngles (const UtDCM &aDCM, double &aYaw_rad, double &aPitch_rad, double &aRoll_rad)
P6DOF_EXPORT void P6DofUtils::SphericalGreatCircleHeadingAndDistance (const double aLat, const double aLon, const double aTargetLat, const double aTargetLon, double &aTargetHeading_r, double &aTargetDistance_m)
P6DOF_EXPORT void P6DofUtils::CalcSphericalPositionFromLatLonAlt (const double aLat_deg, const double aLon_deg, const double aAlt_m, UtVec3dX &aPos_m)
P6DOF_EXPORT void P6DofUtils::InertialToBodyRel (const UtDCM &aMatrix, const UtVec3dX &aInertial, UtVec3dX &aBodyRel)
P6DOF_EXPORT double P6DofUtils::GetSphericalEarthRadius_m ()
P6DOF_EXPORT void P6DofUtils::DCM_InertialToBodyRel (const UtDCM &aMatrix, const UtVec3dX &aInertial, UtVec3dX &aBodyRel)
P6DOF_EXPORT void P6DofUtils::SetSphericalDCM (const double aLat, const double aLon, UtDCM &aDCM)
P6DOF_EXPORT void P6DofUtils::SetSphericalDCM (const double aLat, const double aLon, const double aYaw_rad, const double aPitch_rad, const double aRoll_rad, UtDCM &aDCM)
P6DOF_EXPORT void P6DofUtils::SetSphericalDCM (const UtVec3dX &aPos_m, const double aHdg_rad, const double aPitch_rad, const double aRoll_rad, UtDCM &aDCM)
P6DOF_EXPORT void P6DofUtils::GetSphericalNEDAngles (const UtDCM &aDCM, const UtVec3dX &aPos, double &aHdg_rad, double &aPitch_rad, double &aRoll_rad)
P6DOF_EXPORT UtVec3dX P6DofUtils::CalcWGS84VecToNED (const UtVec3dX &aWGS84Pos_m, const UtVec3dX &aVecWGS84_m)
P6DOF_EXPORT void P6DofUtils::CalcSphericalNEDVelToSphericalVel (const UtVec3dX &aPos, const UtVec3dX &aNEDVec, UtVec3dX &aSphericalVec)
P6DOF_EXPORT double P6DofUtils::CalcSphericalRangeToPoint_m (const UtVec3dX &aPos, const UtVec3dX &aPoint)
P6DOF_EXPORT double P6DofUtils::CalcSphericalHeadingToPoint_r (const UtVec3dX &aPos, const UtVec3dX &aPoint)
P6DOF_EXPORT void P6DofUtils::AlphaBetaFromInertialVel (const UtDCM &aMatrix, const UtVec3dX &aInertialVel_mps, double &aSpeed_fps, double &aAlpha_deg, double &aBeta_deg)
P6DOF_EXPORT void P6DofUtils::AlphaBetaFromBodyRelVel (const UtVec3dX &aVel_fps, double &aAlpha_deg, double &aBeta_deg, double &aSpeed_fps)
P6DOF_EXPORT void P6DofUtils::AlphaBetaFromBodyRelVel (const UtVec3dX &aVel_fps, double &aAlpha_deg, double &aBeta_deg)
P6DOF_EXPORT void P6DofUtils::GetPositionFromLLA (const double aLat, const double aLon, const double aAlt_m, const bool aUseSpericalCoords, UtVec3dX &aPosition_m)
P6DOF_EXPORT void P6DofUtils::GetVelocityFromVelNED (const double aNorthVel_mps, const double aEastVel_mps, const double aDownVel_mps, const bool aUseSpericalCoords, UtVec3dX &aPosition_m, UtVec3dX &aVelocity_mps)
P6DOF_EXPORT void P6DofUtils::GetLLAFromPosition (const UtVec3dX &aPosition_m, const bool aUseSpericalCoords, double &aLat, double &aLon, double &aAlt_m)
P6DOF_EXPORT void P6DofUtils::LimitThrottleNormalized (double &aThrottle)
P6DOF_EXPORT void P6DofUtils::LimitThrottleAfterburner (double &aThrottle)

Variables

static constexpr int64_t P6DofUtils::cEPSILON_SIMTIME_NANOSEC = 100
static constexpr double P6DofUtils::cEPSILON_SIMTIME_SEC = (0.000000001 * static_cast<double>(cEPSILON_SIMTIME_NANOSEC))
Copyrights Multiple, All Rights Reserved