|
20 | 20 | from flask_cors import CORS |
21 | 21 |
|
22 | 22 | from .launch_monitor import LaunchMonitor, Shot, ClubType |
23 | | -from .ops243 import SpeedReading, Direction |
| 23 | +from .ops243 import SpeedReading, Direction, set_show_raw_readings |
24 | 24 | from .session_logger import init_session_logger, get_session_logger |
25 | 25 |
|
26 | 26 | # Configure logging |
@@ -816,7 +816,8 @@ def main(): |
816 | 816 | "--web-port", type=int, default=8080, help="Web server port (default: 8080)" |
817 | 817 | ) |
818 | 818 | parser.add_argument("--debug", "-d", action="store_true", help="Enable debug mode") |
819 | | - parser.add_argument("--radar-log", action="store_true", help="Log raw radar data to console") |
| 819 | + parser.add_argument("--radar-log", action="store_true", help="Log raw radar data to console (Python logging)") |
| 820 | + parser.add_argument("--show-raw", action="store_true", help="Show raw radar readings in console (signed values)") |
820 | 821 | parser.add_argument( |
821 | 822 | "--camera", "-c", action="store_true", help="Enable camera for ball detection" |
822 | 823 | ) |
@@ -882,6 +883,11 @@ def main(): |
882 | 883 | radar_raw_logger.setLevel(logging.DEBUG) |
883 | 884 | print("Radar raw logging ENABLED - all readings will be logged") |
884 | 885 |
|
| 886 | + # Enable raw reading console output if requested |
| 887 | + if args.show_raw: |
| 888 | + set_show_raw_readings(True) |
| 889 | + print("Raw radar readings display ENABLED - signed speed values will be shown") |
| 890 | + |
885 | 891 | # Start the monitor |
886 | 892 | start_monitor(port=args.port, mock=args.mock) |
887 | 893 |
|
|
0 commit comments