Skip to content

Commit

Permalink
Merge pull request #5 from mvacanti/pr-update-mag-latitude
Browse files Browse the repository at this point in the history
JSBSim latitude type change to align with GPS inputs
  • Loading branch information
Jaeyoung-Lim authored Sep 27, 2020
2 parents c5346be + 9c76d93 commit d2cc31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sensor_mag_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ SensorData::Magnetometer SensorMagPlugin::getData() {
Eigen::Vector3d SensorMagPlugin::getMagFromJSBSim() {
double lat_deg, lon_deg, roll_rad, pitch_rad, heading_rad;

lat_deg = _sim_ptr->GetPropertyValue("position/lat-gc-deg");
lat_deg = _sim_ptr->GetPropertyValue("position/lat-geod-deg");
lon_deg = _sim_ptr->GetPropertyValue("position/lon-gc-deg");
roll_rad = _sim_ptr->GetPropertyValue("attitude/roll-rad");
pitch_rad = _sim_ptr->GetPropertyValue("attitude/pitch-rad");
Expand Down

0 comments on commit d2cc31d

Please sign in to comment.