mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-23 01:26:37 +00:00
feat: stage11 — Acceptance tests & performance benchmarks (80 tests)
This commit is contained in:
@@ -130,8 +130,13 @@ class FlightProcessor:
|
||||
vo_ok = False
|
||||
if self._vo and flight_id in self._prev_images:
|
||||
try:
|
||||
from gps_denied.schemas.flight import CameraParameters
|
||||
cam = CameraParameters(
|
||||
focal_length=4.5, sensor_width=6.17, sensor_height=4.55,
|
||||
resolution_width=640, resolution_height=480,
|
||||
)
|
||||
rel_pose = self._vo.compute_relative_pose(
|
||||
self._prev_images[flight_id], image
|
||||
self._prev_images[flight_id], image, cam
|
||||
)
|
||||
if rel_pose and rel_pose.tracking_good:
|
||||
vo_ok = True
|
||||
|
||||
Reference in New Issue
Block a user