Skip to content

Commit

Permalink
Update libraries/SITL/SIM_JSON.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hall <[email protected]>
  • Loading branch information
eppravitra and IamPete1 authored Jul 7, 2024
1 parent 2e34b89 commit 803f629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SITL/SIM_JSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void JSON::recv_fdm(const struct sitl_input &input)
velocity_air_ef = velocity_ef - wind_ef;

// velocity relative to airmass in body frame
velocity_air_bf = dcm.transposed() * velocity_ef;
velocity_air_bf = dcm.transposed() * velocity_air_ef;

// airspeed
airspeed = velocity_air_bf.length();
Expand Down

0 comments on commit 803f629

Please sign in to comment.