mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-22 10:46:37 +00:00
improving components consistency
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Flight Database Layer
|
||||
# Flight Database
|
||||
|
||||
## Interface Definition
|
||||
|
||||
@@ -548,7 +548,7 @@ bool: True if saved
|
||||
**Description**: Saves heading value for temporal smoothing and recovery.
|
||||
|
||||
**Called By**:
|
||||
- F06 Image Rotation Manager
|
||||
- F02 Flight Processor (after F06.update_heading() returns, F02 persists to F03)
|
||||
|
||||
**Input**:
|
||||
```python
|
||||
@@ -955,6 +955,11 @@ CREATE TABLE chunks (
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (flight_id) REFERENCES flights(id) ON DELETE CASCADE,
|
||||
-- Foreign key to ensure anchor_frame_id references valid frame in flight_images
|
||||
CONSTRAINT fk_anchor_frame
|
||||
FOREIGN KEY (flight_id, anchor_frame_id)
|
||||
REFERENCES flight_images(flight_id, frame_id)
|
||||
ON DELETE SET NULL,
|
||||
INDEX idx_chunks_flight (flight_id),
|
||||
INDEX idx_chunks_active (flight_id, is_active),
|
||||
INDEX idx_chunks_matching (flight_id, matching_status)
|
||||
|
||||
Reference in New Issue
Block a user