You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the GPS coordinate calculation is done in the main script. Instead, this should be performed by the TargetDetect class so that its "inputs" are a frame and some telemetry and its "outputs" are GPS coordinates (along with other metadata like the detected pixel coordinates and any useful CV2 frames for debugging).
I say "inputs" and "outputs" because this won't necessarily be one function that does everything. Instead, we might break it up into multiple smaller functions that have specific focuses. Think about the best way to break this up so that functions are small and have a single focus. We can add "aggregate" functions as well that do multiple things but keep the heavy-lifting in small bite-sized chunks for readability.