Skip to content
Snippets Groups Projects
Commit 8a617ca6 authored by MarjorieH's avatar MarjorieH Committed by GitHub
Browse files

Fixed bug in getImageTime and getSensorPosition when checking if the image coordinate is in range.

parent efd0dd99
No related branches found
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@ double MdisNacSensorModel::getImageTime(const csm::ImageCoord &imagePt) const {
// check if the image point is in range
if (imagePt.samp >= m_startingDetectorSample &&
imagePt.samp <= (m_startingDetectorSample + m_nSamples) &&
imagePt.line >= m_startingDetectorSample &&
imagePt.line >= m_startingDetectorLine &&
imagePt.line <= (m_startingDetectorLine + m_nLines)) {
return m_ephemerisTime;
}
......@@ -335,7 +335,7 @@ csm::EcefCoord MdisNacSensorModel::getSensorPosition(const csm::ImageCoord &imag
// check if the image point is in range
if (imagePt.samp >= m_startingDetectorSample &&
imagePt.samp <= (m_startingDetectorSample + m_nSamples) &&
imagePt.line >= m_startingDetectorSample &&
imagePt.line >= m_startingDetectorLine &&
imagePt.line <= (m_startingDetectorLine + m_nLines)) {
csm::EcefCoord sensorPosition;
sensorPosition.x = m_spacecraftPosition[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment