Skip to content

Commit

Permalink
Use image center when computing flying height
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed May 14, 2024
1 parent 3955102 commit 29a64ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/UsgsAstroLsSensorModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,10 @@ void UsgsAstroLsSensorModel::updateState() {
"based on dx {} dy {} dz {}",
m_gsd, dx, dy, dz)

// Compute flying height
csm::EcefCoord sensorPos = getSensorPosition(0.0);
// Compute the flying height. Use the center of the image, as for
// m_referencePointXyz and m_gsd.
ip = csm::ImageCoord(lineCtr, sampCtr);
csm::EcefCoord sensorPos = getSensorPosition(ip);
dx = sensorPos.x - m_referencePointXyz.x;
dy = sensorPos.y - m_referencePointXyz.y;
dz = sensorPos.z - m_referencePointXyz.z;
Expand Down

0 comments on commit 29a64ea

Please sign in to comment.