mirror of
https://github.com/azaion/gps-denied-desktop.git
synced 2026-04-22 22:06:36 +00:00
improving components consistency
This commit is contained in:
@@ -263,7 +263,9 @@ bool: True if updated successfully
|
||||
1. Normalize angle to 0-360 range
|
||||
2. Add to heading history (last 10 headings)
|
||||
3. Update current_heading for flight
|
||||
4. **Persist to database**: Call F03 Flight Database.save_heading(flight_id, frame_id, heading, timestamp)
|
||||
4. Return True (caller F02 is responsible for persistence via F03)
|
||||
|
||||
**Note**: Heading persistence is the caller's responsibility (F02 Flight Processor calls F03.save_heading() after receiving the updated heading).
|
||||
|
||||
**Test Cases**:
|
||||
1. **Update heading**: Sets new heading
|
||||
@@ -495,13 +497,14 @@ return None # No match found
|
||||
## Dependencies
|
||||
|
||||
### Internal Components
|
||||
- **F04 Satellite Data Manager**: For tile fetching (`fetch_tile`) and tile bounds computation (`compute_tile_bounds`)
|
||||
- **F09 Metric Refinement**: For matching during rotation sweep (align_to_satellite, align_chunk_to_satellite). F06 rotates images, F09 performs the actual matching.
|
||||
- **H07 Image Rotation Utils**: For image rotation and angle calculations
|
||||
- **F12 Route Chunk Manager**: For chunk image retrieval
|
||||
- **F03 Flight Database**: For heading persistence
|
||||
|
||||
**Note**: `TileBounds` data model is imported from F09 Metric Refinement.
|
||||
**Note**:
|
||||
- `TileBounds` data model is imported from F09 Metric Refinement.
|
||||
- F06 does NOT call F04 directly. The caller (F02 or F11) provides satellite tiles and tile_bounds.
|
||||
- F06 does NOT persist heading to database. The caller (F02) is responsible for calling F03.save_heading().
|
||||
- Chunk rotation orchestration (calling try_chunk_rotation_steps in recovery flow) is done by F11 Failure Recovery Coordinator.
|
||||
|
||||
### External Dependencies
|
||||
- **opencv-python**: Image rotation (`cv2.warpAffine`)
|
||||
|
||||
Reference in New Issue
Block a user