Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
a0278ff
Fab: Module+ThirdParty Source layout, copyright headers, PlatformAllo…
WouterJansen Nov 9, 2026
5d0225f
Merge remote-tracking branch 'origin/5.8dev' into fabdev
WouterJansen Nov 9, 2026
f22e432
Fix UBT module clash: prefix ThirdParty modules with AirSim
WouterJansen Nov 9, 2026
6a57bde
Fix includes broken by the Public/Private split; fix float truncation…
WouterJansen Nov 9, 2026
f760911
Fix remaining compile warnings (C4305 float truncation, C4996 swscanf)
WouterJansen Nov 9, 2026
20710fe
Disable /GL for AirLib Release|x64; drop obsolete iOS setting from Bl…
WouterJansen Nov 9, 2026
edef1e6
SimHUD: set r.CustomDepth once, at console priority, only when needed
WouterJansen Nov 9, 2026
00d28d9
Ignore the downloaded SUV at its new content location
WouterJansen Nov 9, 2026
6dfcf85
Remove PhysX-era vehicle content that no longer works in UE5
WouterJansen Nov 9, 2026
94fc289
Fab: move plugin content into the CosysAirSim pack folder with type p…
WouterJansen Nov 9, 2026
6c0b2b7
SUV download: v2 zip in the CosysAirSim pack-folder layout
WouterJansen Nov 9, 2026
111912f
Magnetometer: World Magnetic Model (WMM-2025) reference field, as in PX4
WouterJansen Nov 9, 2026
56eba6b
Export main plugin classes with AIRSIM_API (from PR #139)
WouterJansen Nov 9, 2026
3f8592e
Fix Euler rotation matrix angles and composition order
LuuSir Oct 5, 2026
cac40f9
Keep annotation map snapshots alive during regex updates
LuuSir Oct 5, 2026
9d63071
Keep mesh identifiers stable and remove destroyed annotation entries
LuuSir Oct 5, 2026
f750073
Fix crash when applying weather: dangling static fog actor pointer
WouterJansen Nov 9, 2026
4460026
Fix name-based lookups broken by the content renames; spawnObject crash
WouterJansen Nov 9, 2026
8d0ac09
Annotation: actor tags were dropped for single-mesh actors
WouterJansen Nov 9, 2026
81fdd60
Blocks: add volumetric Exponential Height Fog; changelog entries
WouterJansen Nov 9, 2026
0650892
improved default
WouterJansen Nov 9, 2026
d59fc92
fixed old typo
WouterJansen Nov 9, 2026
7d31d15
updates
WouterJansen Nov 9, 2026
9210365
fixes to weather HUD
WouterJansen Nov 9, 2026
be6d7b7
cleaned up changelog
WouterJansen Nov 9, 2026
45896fb
Resolve pre-Fab asset paths through CoreRedirects when loading by path
WouterJansen Nov 9, 2026
47c5322
updated version to 4.0.0
WouterJansen Nov 9, 2026
c54cf08
docs: bring settings.md defaults in line with the code; fix SpeedUnit…
WouterJansen Nov 9, 2026
614796b
updated to 4.0.0
WouterJansen Nov 9, 2026
75b0e44
Optional asynchronous GPU readback for camera captures (off by default)
WouterJansen Nov 10, 2026
955ce3b
ROS2 node: fix data races between executor callbacks
WouterJansen Nov 10, 2026
2920cf5
cleanup
WouterJansen Nov 10, 2026
617ca64
Fix crash in annotation and segmentation API calls from the RPC threa…
WouterJansen Nov 10, 2026
164cbe9
Fix simSpawnObject with blueprints in packaged builds (#124)
WouterJansen Nov 10, 2026
f3c831b
Fix annotation component lookup and colormap indexing (#109)
WouterJansen Nov 10, 2026
91f7a4e
Fix PX4 lockstep never being enabled (#129)
WouterJansen Nov 10, 2026
bc657f4
Fix multirotor rotor drag areas while keeping the flight behaviour (#…
WouterJansen Nov 10, 2026
e9db84d
ROS2: use the ROS frame for velocity commands and fix the PD controll…
WouterJansen Nov 10, 2026
0eb88e7
Add a ring field to the ROS LiDAR point clouds (#127)
WouterJansen Nov 10, 2026
e7b0cf7
Allow ArduRover for skid-steer vehicles (#113)
WouterJansen Nov 10, 2026
81ebd23
Python client: check the drivetrain and yaw_mode arguments (#125)
WouterJansen Nov 10, 2026
f1efb1a
cleanup
WouterJansen Nov 10, 2026
fe229a2
Fix crash in simSpawnObject when the object name is already in use
WouterJansen Nov 10, 2026
88a8616
removed dev tests
WouterJansen Nov 10, 2026
2eba9c6
Fab: vendored headers module, .uplugin keys, per-platform Unix libraries
WouterJansen Nov 13, 2026
543b9aa
font name fixing
WouterJansen Nov 13, 2026
3f20d9f
Point the font CoreRedirects to the renamed FF_ font faces
WouterJansen Nov 13, 2026
896180f
build.sh: copy without owner, group and permissions
WouterJansen Nov 13, 2026
000a8c8
build.sh: copy without owner, group, permissions and times
WouterJansen Nov 13, 2026
28b4a2e
updated build to fix permissions on rsync
WouterJansen Nov 13, 2026
f19b190
build.sh: remove merge conflict markers, keep rsync -rl
WouterJansen Nov 13, 2026
16c15f5
Replace deprecated FImageUtils::CompressImageArray
WouterJansen Nov 13, 2026
f210414
Add a generated ros2 branch with only the ROS2 workspace
WouterJansen Nov 13, 2026
a93ee4d
make_ros2_branch.sh: separate the branch name from paths in the print…
WouterJansen Nov 13, 2026
11edab3
ROS2: declare all build dependencies in package.xml
WouterJansen Nov 13, 2026
9077ba2
docs: getting started page and FAQ for the Fab plugin
WouterJansen Nov 16, 2026
aad98f1
fab documentation
WouterJansen Nov 16, 2026
148e9c3
updated fab documentation
WouterJansen Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,14 @@ ModelManifest.xml
/AirLib/CTestTestfile.cmake
/AirLib/cmake_install.cmake
/MavLinkCom/lib/libMavLinkCom.a
/Unreal/Plugins/AirSim/Source/AirLib/
/Unreal/Plugins/AirSim/Source/AirSim/Public/AirLib/
/Unreal/Plugins/AirSim/Source/AirSim/Lib/
/Unreal/Plugins/AirSim/Source/ThirdParty/AirSimEigen/Eigen/
/Unreal/Plugins/AirSim/Source/ThirdParty/AirSimRpclib/include/
/Unreal/Plugins/AirSim/Source/ThirdParty/AirSimRpclib/lib/
/Unreal/Plugins/AirSim/Source/ThirdParty/AirSimMavLinkCom/include/
/Unreal/Plugins/AirSim/Source/ThirdParty/AirSimMavLinkCom/lib/
/Unreal/Plugins/AirSim/Source/ThirdParty/AirSimVendor/include/
/Unreal/Environments/Blocks/Plugins/AirSim/
/enc_temp_folder
/cmake/MavLinkCom/MavLinkTest/MavLinkTest
Expand Down Expand Up @@ -337,6 +344,8 @@ cmake_build/
/PythonClient/**/cloud.txt
/PythonClient/**/cloud.asc
/Unreal/Plugins/AirSim/Content/VehicleAdv/SUV/
# high-poly SUV after the Fab content reorg (downloaded by build.cmd/build.sh, not tracked)
/Unreal/Plugins/AirSim/Content/CosysAirSim/*/Vehicles/SUV/
/suv_download_tmp
car_assets.zip
__pycache__/
Expand Down Expand Up @@ -410,3 +419,4 @@ Unreal/Environments/Blocks/Blocks.slnx
Unreal/Environments/Blocks/Blocks.code-workspace
Unreal/Environments/Blocks/.ignore
*.code-workspace
airsim_segmentation_colormap_list_*
7 changes: 3 additions & 4 deletions AirLib/AirLib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
<ClInclude Include="include\common\Common.hpp" />
<ClInclude Include="include\common\CommonStructs.hpp" />
<ClInclude Include="include\common\ClockFactory.hpp" />
<ClInclude Include="include\common\common_utils\bitmap_image.hpp" />
<ClInclude Include="include\common\common_utils\ColorUtils.hpp" />
<ClInclude Include="include\common\common_utils\ctpl_stl.h" />
<ClInclude Include="include\common\common_utils\EnumFlags.hpp" />
Expand All @@ -58,8 +57,6 @@
<ClInclude Include="include\common\common_utils\MedianFilter.hpp" />
<ClInclude Include="include\common\common_utils\MinWinDefines.hpp" />
<ClInclude Include="include\common\common_utils\OnlineStats.hpp" />
<ClInclude Include="include\common\common_utils\optional.hpp" />
<ClInclude Include="include\common\common_utils\prettyprint.hpp" />
<ClInclude Include="include\common\common_utils\ProsumerQueue.hpp" />
<ClInclude Include="include\common\common_utils\RandomGenerator.hpp" />
<ClInclude Include="include\common\common_utils\ScheduledExecutor.hpp" />
Expand All @@ -76,6 +73,8 @@
<ClInclude Include="include\common\SteppableClock.hpp" />
<ClInclude Include="include\common\DelayLine.hpp" />
<ClInclude Include="include\common\EarthUtils.hpp" />
<ClInclude Include="include\common\WorldMagneticModel.hpp" />
<ClInclude Include="include\common\WorldMagneticModelTables.hpp" />
<ClInclude Include="include\common\FirstOrderFilter.hpp" />
<ClInclude Include="include\common\FrequencyLimiter.hpp" />
<ClInclude Include="include\common\GaussianMarkov.hpp" />
Expand Down Expand Up @@ -240,7 +239,7 @@
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<WholeProgramOptimization>false</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'" Label="Configuration">
Expand Down
9 changes: 0 additions & 9 deletions AirLib/AirLib.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
<ClInclude Include="include\common\common_utils\OnlineStats.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\common\common_utils\optional.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\common\common_utils\prettyprint.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\common\common_utils\ProsumerQueue.hpp">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -456,9 +450,6 @@
<ClInclude Include="include\common\common_utils\WindowsApisCommonPost.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\common\common_utils\bitmap_image.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\common\common_utils\ColorUtils.hpp">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/ApiProvider.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_ApiProvider_hpp
#define air_ApiProvider_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/ApiServerBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_ApiServerBase_hpp
#define air_ApiServerBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/RpcLibAdaptorsBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_RpcLibAdaptorsBase_hpp
#define air_RpcLibAdaptorsBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/RpcLibClientBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_RpcLibClientBase_hpp
#define air_RpcLibClientBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/RpcLibServerBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_RpcLibServerBase_hpp
#define air_RpcLibServerBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/VehicleApiBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_VehicleApiBase_hpp
#define air_VehicleApiBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/VehicleSimApiBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_VehicleSimApiBase_hpp
#define air_VehicleSimApiBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/api/WorldSimApiBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_WorldSimApiBase_hpp
#define air_WorldSimApiBase_hpp
Expand Down
24 changes: 11 additions & 13 deletions AirLib/include/common/AirSimSettings.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_AirSimSettings_hpp
#define airsim_core_AirSimSettings_hpp
Expand Down Expand Up @@ -119,8 +119,8 @@ namespace airlib
std::string non_slippery_mat;

PawnPath(const std::string& pawn_bp_val = "",
const std::string& slippery_mat_val = "/AirSim/VehicleAdv/PhysicsMaterials/Slippery.Slippery",
const std::string& non_slippery_mat_val = "/AirSim/VehicleAdv/PhysicsMaterials/NonSlippery.NonSlippery")
const std::string& slippery_mat_val = "/AirSim/CosysAirSim/Physics/Vehicles/PM_Slippery.PM_Slippery",
const std::string& non_slippery_mat_val = "/AirSim/CosysAirSim/Physics/Vehicles/PM_NonSlippery.PM_NonSlippery")
: pawn_bp(pawn_bp_val), slippery_mat(slippery_mat_val), non_slippery_mat(non_slippery_mat_val)
{
}
Expand Down Expand Up @@ -606,7 +606,7 @@ namespace airlib
std::map<std::string, std::unique_ptr<PassiveEchoBeaconSetting>> passive_echo_beacons;
std::map<std::string, std::unique_ptr<LightSetting>> world_lights;
float speed_unit_factor = 1.0f;
std::string speed_unit_label = "m\\s";
std::string speed_unit_label = "m/s";
std::map<std::string, std::shared_ptr<SensorSetting>> sensor_defaults;
Vector3r wind = Vector3r::Zero();
Vector3r ext_force = Vector3r::Zero();
Expand Down Expand Up @@ -1309,20 +1309,18 @@ namespace airlib
static void initializePawnPaths(std::map<std::string, PawnPath>& pawn_paths)
{
pawn_paths.clear();
pawn_paths.emplace("BareboneCar",
PawnPath("Class'/AirSim/VehicleAdv/Vehicle/VehicleAdvPawn.VehicleAdvPawn_C'"));
pawn_paths.emplace("DefaultCar",
PawnPath("Class'/AirSim/VehicleAdv/SUV/SuvCarPawn.SuvCarPawn_C'"));
PawnPath("Class'/AirSim/CosysAirSim/Blueprints/Vehicles/SUV/BP_SuvCarPawn.BP_SuvCarPawn_C'"));
pawn_paths.emplace("DefaultSkidVehicle",
PawnPath("Class'/AirSim/VehicleAdv/CPHusky/CPHuskyPawn.CPHuskyPawn_C'"));
PawnPath("Class'/AirSim/CosysAirSim/Blueprints/Vehicles/CPHusky/BP_CPHuskyPawn.BP_CPHuskyPawn_C'"));
pawn_paths.emplace("DefaultQuadrotor",
PawnPath("Class'/AirSim/Blueprints/BP_FlyingPawn.BP_FlyingPawn_C'"));
PawnPath("Class'/AirSim/CosysAirSim/Blueprints/Vehicles/Multirotor/BP_FlyingPawn.BP_FlyingPawn_C'"));
pawn_paths.emplace("Pioneer",
PawnPath("Class'/AirSim/VehicleAdv/Pioneer/PioneerPawn.PioneerPawn_C'"));
PawnPath("Class'/AirSim/CosysAirSim/Blueprints/Vehicles/Pioneer/BP_PioneerPawn.BP_PioneerPawn_C'"));
pawn_paths.emplace("BoxCar",
PawnPath("Class'/AirSim/VehicleAdv/BoxCar/BoxCarPawn.BoxCarPawn_C'"));
PawnPath("Class'/AirSim/CosysAirSim/Blueprints/Vehicles/BoxCar/BP_BoxCarPawn.BP_BoxCarPawn_C'"));
pawn_paths.emplace("DefaultComputerVision",
PawnPath("Class'/AirSim/Blueprints/BP_ComputerVisionPawn.BP_ComputerVisionPawn_C'"));
PawnPath("Class'/AirSim/CosysAirSim/Blueprints/Vehicles/ComputerVision/BP_ComputerVisionPawn.BP_ComputerVisionPawn_C'"));
}

static void loadPawnPaths(const Settings& settings_json, std::map<std::string, PawnPath>& pawn_paths)
Expand Down Expand Up @@ -1657,7 +1655,7 @@ namespace airlib
engine_sound = settings_json.getBool("EngineSound", false);
enable_rpc = settings_json.getBool("EnableRpc", enable_rpc);
speed_unit_factor = settings_json.getFloat("SpeedUnitFactor", 1.0f);
speed_unit_label = settings_json.getString("SpeedUnitLabel", "m\\s");
speed_unit_label = settings_json.getString("SpeedUnitLabel", "m/s");
move_world_origin = settings_json.getBool("MoveWorldOrigin", false);
initial_instance_segmentation = settings_json.getBool("InitialInstanceSegmentation", true);
log_messages_visible = settings_json.getBool("LogMessagesVisible", true);
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/CancelToken.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_CancelToken_hpp
#define air_CancelToken_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/ClockBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_ClockBase_hpp
#define airsim_core_ClockBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/ClockFactory.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_ClockFactory_hpp
#define airsim_core_ClockFactory_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/Common.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef msr_airlib_Common_hpp
#define msr_airlib_Common_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/CommonStructs.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef msr_airlib_CommonStructs_hpp
#define msr_airlib_CommonStructs_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/DelayLine.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef common_utils_DelayLine_hpp
#define common_utils_DelayLine_hpp
Expand Down
1 change: 1 addition & 0 deletions AirLib/include/common/EarthCelestial.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) Cosys-Lab, University of Antwerp. 2026
/*
Adopted from SunCalc by Vladimir Agafonkin
https://github.com/mourner/suncalc
Expand Down
27 changes: 26 additions & 1 deletion AirLib/include/common/EarthUtils.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_Earth_hpp
#define air_Earth_hpp
Expand All @@ -8,6 +8,7 @@
#include <exception>
#include "common/CommonStructs.hpp"
#include "common/Common.hpp"
#include "common/WorldMagneticModel.hpp"

namespace msr
{
Expand Down Expand Up @@ -207,6 +208,30 @@ namespace airlib
return getMagField(geo_point, declination, inclination);
}

static Vector3r getMagFieldWMM(const GeoPoint& geo_point) //return Tesla
{
double declination, inclination;
return getMagFieldWMM(geo_point, declination, inclination);
}

// World Magnetic Model (see WorldMagneticModelTables.hpp for the model/epoch), using the same
// lookup tables as PX4 so the simulated magnetometer agrees with PX4's EKF expectations.
// Returns the field in Tesla in the local NED frame (z positive down); altitude is ignored,
// as in PX4. declination/inclination are returned in radians.
static Vector3r getMagFieldWMM(const GeoPoint& geo_point, double& declination, double& inclination) //return Tesla
{
const float lat = static_cast<float>(geo_point.latitude);
const float lon = static_cast<float>(geo_point.longitude);
declination = Utils::degreesToRadians(static_cast<double>(wmm::getDeclinationDegrees(lat, lon)));
inclination = Utils::degreesToRadians(static_cast<double>(wmm::getInclinationDegrees(lat, lon)));
const double strength = wmm::getStrengthTesla(lat, lon);
const double horizontal = strength * cos(inclination);

return Vector3r(static_cast<real_T>(horizontal * cos(declination)),
static_cast<real_T>(horizontal * sin(declination)),
static_cast<real_T>(strength * sin(inclination)));
}

static Vector3r getMagField(const GeoPoint& geo_point, double& declination, double& inclination) //return Tesla
{
/*
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/FirstOrderFilter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsimcore_firstorderfilter_hpp
#define airsimcore_firstorderfilter_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/FrequencyLimiter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef msr_airlib_FrequencyLimiter_hpp
#define msr_airlib_FrequencyLimiter_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/GaussianMarkov.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef common_utils_GaussianMarkov_hpp
#define common_utils_GaussianMarkov_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/GeodeticConverter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_GeodeticConverter_hpp
#define air_GeodeticConverter_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/ImageCaptureBase.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef air_ImageCaptureBase_hpp
#define air_ImageCaptureBase_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/LogFileWriter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef common_utils_LogFileWriter_hpp
#define common_utils_LogFileWriter_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/PidController.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef msr_airlib__PidController_hpp
#define msr_airlib__PidController_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/ScalableClock.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_ScalableClock_hpp
#define airsim_core_ScalableClock_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/Settings.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef msr_airlib_settings_hpp
#define msr_airlib_settings_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/StateReporter.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_StateReporter_hpp
#define airsim_core_StateReporter_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/StateReporterWrapper.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_StateReporterWrapper_hpp
#define airsim_core_StateReporterWrapper_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/SteppableClock.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_SteppableClock_hpp
#define airsim_core_SteppableClock_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/UpdatableContainer.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_UpdatableContainer_hpp
#define airsim_core_UpdatableContainer_hpp
Expand Down
2 changes: 1 addition & 1 deletion AirLib/include/common/UpdatableObject.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Copyright (c) Cosys-Lab, University of Antwerp. 2026

#ifndef airsim_core_UpdatableObject_hpp
#define airsim_core_UpdatableObject_hpp
Expand Down
Loading
Loading