Skip to content

Camera Controls#8

Merged
MrSir merged 10 commits intomainfrom
camera_controls
Jan 27, 2026
Merged

Camera Controls#8
MrSir merged 10 commits intomainfrom
camera_controls

Conversation

@MrSir
Copy link
Owner

@MrSir MrSir commented Jan 27, 2026

  • re-organized the code in order to not fake code coverage
  • created a new camera component and implemented the controls for the 2 different cameras
    • Orbiting camera can now be zoomed in/out with scroll wheel, and if you hold left mouse and move up or down the camera will get lower to the ground. You can see the circuit elevation that way. (most visible in Monaco)
    • Top Down camera can be zoomed in/out with scroll wheel, and dragged around by holding down left mouse button.
  • added some much needed tests (mostly for the new component) to bring up coverage to 9% (goal is 100%)

@github-actions
Copy link

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/f1p
   app.py55550%1–125
   main.py330%1–4
src/f1p/services/data_extractor
   service.py4294290%1–823
src/f1p/ui/components
   driver.py62620%1–119
   map.py82820%1–116
   menu.py75750%1–147
   origin.py19190%1–28
   playback.py93930%1–206
   weather.py1131130%1–320
src/f1p/ui/components/gui
   button.py880%1–18
   drop_down.py1121120%1–225
src/f1p/ui/components/leaderboard
   component.py1131130%1–327
   processors.py1621620%1–245
src/f1p/utils
   color.py880%1–17
   geometry.py38380%1–77
   performance.py12120%1–19
TOTAL154013849% 

Tests Skipped Failures Errors Time
54 0 💤 0 ❌ 0 🔥 1.026s ⏱️

@github-actions
Copy link

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/f1p
   app.py55550%1–125
   main.py330%1–4
src/f1p/services/data_extractor
   service.py4294290%1–823
src/f1p/ui/components
   driver.py62620%1–119
   map.py82820%1–116
   menu.py75750%1–147
   origin.py19190%1–28
   playback.py93930%1–206
   weather.py1131130%1–320
src/f1p/ui/components/gui
   button.py880%1–18
   drop_down.py1121120%1–225
src/f1p/ui/components/leaderboard
   component.py1131130%1–327
   processors.py1621620%1–245
src/f1p/utils
   color.py880%1–17
   geometry.py38380%1–77
   performance.py12120%1–19
TOTAL154013849% 

Tests Skipped Failures Errors Time
54 0 💤 0 ❌ 0 🔥 0.998s ⏱️

@MrSir MrSir merged commit 6b190eb into main Jan 27, 2026
4 checks passed
@MrSir MrSir deleted the camera_controls branch January 27, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant