Skip to content
Snippets Groups Projects
Unverified Commit 0d4cfb60 authored by acpaquette's avatar acpaquette Committed by GitHub
Browse files

Msl Landed Fix (#590)

* Changes to landed option

* Added changelog entry
parent e59d297b
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,10 @@ release.
### Added
- Apollo Metric drivers, tests, and data [#533](https://github.com/DOI-USGS/ale/pull/533)
### Fixed
- Fixed landed sensors to correctly project locally [#590](https://github.com/DOI-USGS/ale/pull/590)
## [0.10.0] - 2024-01-08
### Added
......
......@@ -500,10 +500,7 @@ class Cahvor():
v_s = self.compute_v_s()
H_prime = (self.cahvor_camera_dict['H'] - h_c * self.cahvor_camera_dict['A'])/h_s
V_prime = (self.cahvor_camera_dict['V'] - v_c * self.cahvor_camera_dict['A'])/v_s
if self._props.get("landed", False):
self._cahvor_rotation_matrix = np.array([-H_prime, -V_prime, self.cahvor_camera_dict['A']])
else:
self._cahvor_rotation_matrix = np.array([H_prime, V_prime, self.cahvor_camera_dict['A']])
self._cahvor_rotation_matrix = np.array([H_prime, V_prime, self.cahvor_camera_dict['A']])
return self._cahvor_rotation_matrix
@property
......
......@@ -183,8 +183,11 @@ class MslMastcamPds3NaifSpiceDriver(Cahvor, Framer, Pds3Label, NaifSpice, Cahvor
# See is_navcam() for an explanation.
return (self.compute_h_s() + self.compute_v_s())/2.0
if self._props.get("landed", False):
return -super().focal_length
# For mast cam
return super().focal_length
return super().focal_length
@property
def pixel_size(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment