Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
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
{{ message }}
martinl
openpilot-scripts
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
openpilot-scripts
/
qlog_test.py
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
46 lines (35 loc) · 1.22 KB
main
Breadcrumbs
openpilot-scripts
/
qlog_test.py
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
46 lines (35 loc) · 1.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! python3
from tools.lib.logreader import LogReader
from tools.lib.route import Route
import codecs
# capnproto <= 0.8.0 throws errors converting byte data to string
# below line catches those errors and replaces the bytes with \x__
codecs.register_error("strict", codecs.backslashreplace_errors)
# Frye - Outback 2021
#route_id = '36e19891049b91e3|2021-06-28--16-26-11'
# ursubpar - Outback 2020 PCB alert issue when filtering LKAS
#route_id = '7393c1b180278950|2021-06-29--13-00-40'
# Crispin - Crosstrek 2020
#ROUTE=8bf7e79a3ce64055\|2021-05-24--09-36-27
# martinl - Crosstrek 2018
#ROUTE=05bca04dfbdca165\|2021-07-01--21-54-54
# Rabid - Levorg 2016
#ROUTE=133acd9637109da2\|2021-07-03--20-34-37
# cferra
route_id = 'd345d482f9119a3f|2021-07-02--16-31-11'
route = Route(route_id)
log_paths = route.qlog_paths()
#events_seg0 = list(LogReader(log_paths[0]))
#print(len(events_seg0), 'events logged in first segment')
for log_path in log_paths:
print(log_path)
lr = LogReader(log_path)
for log_msg in lr:
msg_type = log_msg.which()
#print(msg_type)
if msg_type == 'managerState':
print(log_msg)
#if msg_type == 'carEvents':
# print(log_msg)
#if msg_type == 'liveParameters':
#print(log_msg)
You can’t perform that action at this time.