Skip to content

Commit 1d7d11f

Browse files
author
Vehicle Researcher
committed
Squashed 'cereal/' changes from ab32956..eba4349
eba4349 put liveLocation in qlogs 6c4735f add fixed fingerprintSource 4c50d26 GitHub actions (#25) 988783f Merge pull request #28 from commaai/power_monitoring b43fd06 Added offroad power usage git-subtree-dir: cereal git-subtree-split: eba4349
1 parent 60d3364 commit 1d7d11f

File tree

5 files changed

+26
-15
lines changed

5 files changed

+26
-15
lines changed

.github/workflows/tests.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
8+
runs-on: ubuntu-16.04
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Build docker image
13+
run: docker build -t cereal .
14+
- name: Unit Tests
15+
run: |
16+
docker run cereal bash -c "scons --test --asan -j$(nproc) && messaging/test_runner"
17+
- name: Test ZMQ
18+
run: |
19+
docker run cereal bash -c "ZMQ=1 python -m unittest discover ."
20+
- name: Test MSGQ
21+
run: |
22+
docker run cereal bash -c "MSGQ=1 python -m unittest discover ."
23+

azure-pipelines.yml

-14
This file was deleted.

car.capnp

+1
Original file line numberDiff line numberDiff line change
@@ -477,5 +477,6 @@ struct CarParams {
477477
enum FingerprintSource {
478478
can @0;
479479
fw @1;
480+
fixed @2;
480481
}
481482
}

log.capnp

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ struct ThermalData {
280280
batteryVoltage @16 :Int32;
281281
usbOnline @12 :Bool;
282282
networkType @22 :NetworkType;
283+
offroadPowerUsage @23 :UInt32; # Power usage since going offroad in uWh
283284

284285
fanSpeed @10 :UInt16;
285286
started @11 :Bool;

service_list.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ carState: [8021, true, 100., 10]
3131
# 8022 is reserved for sshd
3232
carControl: [8023, true, 100., 10]
3333
plan: [8024, true, 20.]
34-
liveLocation: [8025, true, 0.]
34+
liveLocation: [8025, true, 0., 1]
3535
gpsLocation: [8026, true, 1., 1]
3636
ethernetData: [8027, true, 0.]
3737
navUpdate: [8028, true, 0.]

0 commit comments

Comments
 (0)