Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions flight_modes/flight_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ def update_state(self) -> int:
return self._main.FMQueue.get()

if self._main.sim_input is None:
# if too much time has passed since the last opnav run, set time_for_opnav to true
time_for_opnav: bool = (
time() - self._main.last_opnav_run
) // 60 > params.OPNAV_INTERVAL
Expand Down
4 changes: 2 additions & 2 deletions telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class OpNavSensor(SynchronousSensor):
def __init__(self, main):
super().__init__(main)
self.quat = tuple() * 4
self.pos = tuple() * 3
self.pos = tuple() * 3 # position?
self.acq_time = float()

def poll(self):
Expand Down Expand Up @@ -372,7 +372,7 @@ def detailed_packet_dict(self) -> Dict[dk, Union[int, float]]:
dk.HK_TEMP_4: self.gom.hk.temp[3],
dk.GOM_PPT_MODE: self.gom.hk.pptmode,
dk.RESERVED2: self.gom.hk.reserved2,
dk.RTC_TIME: self.rtc.rtc_time,
dk.RTC_TIME: self.rtc.rtc_time, # real time clock
dk.RPI_CPU: self.rpi.cpu,
dk.RPI_RAM: self.rpi.ram,
dk.RPI_DSK: self.rpi.disk,
Expand Down