Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
ce0fdbd
j-nr-s
ajouatom Oct 23, 2025
6e82488
st2 model
ajouatom Nov 22, 2025
5dc7d60
fix..
ajouatom Nov 23, 2025
4922d5c
fix..
ajouatom Nov 23, 2025
3e7a3ec
debug display
ajouatom Nov 24, 2025
c1bee44
fix..
ajouatom Nov 24, 2025
de93a55
ff
ajouatom Nov 24, 2025
dcddaa5
ff
ajouatom Nov 24, 2025
07f3006
ff
ajouatom Nov 24, 2025
27f919e
ff
ajouatom Nov 24, 2025
eaf5133
ff
ajouatom Nov 24, 2025
11bbf43
ff
ajouatom Nov 24, 2025
a6dcd0c
update sensors, ublox,gpio
ajouatom Nov 24, 2025
03aee2c
update fix.
ajouatom Nov 24, 2025
4b99533
ff
ajouatom Nov 24, 2025
9744425
ff
ajouatom Nov 24, 2025
fe2f798
ff
ajouatom Nov 24, 2025
2a16a8c
ff
ajouatom Nov 24, 2025
b09caa5
ff
ajouatom Nov 24, 2025
e96be91
ff
ajouatom Nov 24, 2025
7f892f6
ff
ajouatom Nov 24, 2025
e491ba9
ff
ajouatom Nov 24, 2025
f2a8041
ff
ajouatom Nov 24, 2025
65e21ed
ff
ajouatom Nov 24, 2025
459e4e8
ff
ajouatom Nov 24, 2025
9db9f51
ff
ajouatom Nov 24, 2025
c74d92b
ff
ajouatom Nov 24, 2025
62c6cfd
ff
ajouatom Nov 24, 2025
20895cc
ff
ajouatom Nov 24, 2025
2eee16b
ff
ajouatom Nov 24, 2025
6225d71
ff
ajouatom Nov 24, 2025
49d8890
ff
ajouatom Nov 24, 2025
890cd6d
ff
ajouatom Nov 24, 2025
d0f3e2f
ff
ajouatom Nov 24, 2025
edfb928
ff
ajouatom Nov 24, 2025
2ea0ba7
fix..
ajouatom Nov 24, 2025
33524d9
fix..
ajouatom Nov 24, 2025
706b443
ff
ajouatom Nov 24, 2025
52ee5cb
ff
ajouatom Nov 24, 2025
852492f
ff
ajouatom Nov 24, 2025
4ef5dcc
TEST: use phone gps only
ajouatom Nov 24, 2025
83f6db1
fix..
ajouatom Nov 25, 2025
784fbbb
driver monitor(hyundai) disalbe alert
ajouatom Nov 25, 2025
c0944bc
fix.. fca11
ajouatom Nov 25, 2025
9e759fa
fix..
ajouatom Nov 25, 2025
22c2dc3
ff
ajouatom Nov 25, 2025
a9eea15
ff
ajouatom Nov 26, 2025
1e58d78
test
ajouatom Nov 26, 2025
123b36b
ff
ajouatom Nov 26, 2025
50979cf
fix..
ajouatom Nov 26, 2025
743282c
fix..
ajouatom Nov 27, 2025
f88ec8b
fff
ajouatom Nov 29, 2025
062e50e
ff
ajouatom Nov 29, 2025
439e4e4
ff
ajouatom Nov 30, 2025
c40cd06
fix..
ajouatom Nov 30, 2025
40112ed
fix..
ajouatom Dec 3, 2025
6e69a29
release
ajouatom Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Carrot2-v9 (2025-12-03)
========================
* ST model
* fix CasperEV FCA11
* fix DriverMonitoring alert (for USA)
* apply livePose
* update sensor code

Carrot2-v9 (2025-10-17)
========================
* Nuggets In Dijon model
Expand Down
8 changes: 2 additions & 6 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,9 @@ Export('env', 'qt_env', 'arch', 'real_arch')

# Build common module
SConscript(['common/SConscript'])
Import('_common', '_gpucommon')

Import('_common')
common = [_common, 'json11', 'zmq']
gpucommon = [_gpucommon]

Export('common', 'gpucommon')
Export('common')

# Build messaging (cereal + msgq + socketmaster + their dependencies)
# Enable swaglog include in submodules
Expand Down Expand Up @@ -365,7 +362,6 @@ SConscript([
])
if arch != "Darwin":
SConscript([
'system/sensord/SConscript',
'system/logcatd/SConscript',
])

Expand Down
2 changes: 1 addition & 1 deletion cereal/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, should_log: bool, frequency: float, decimation: Optional[int]
"clocks": (True, 0.1, 1),
"ubloxRaw": (True, 20.),
"livePose": (True, 20., 4),
"liveLocationKalman": (True, 20., 5),
#"liveLocationKalman": (True, 20., 5),
"liveParameters": (True, 20., 5),
"cameraOdometry": (True, 20., 10),
"thumbnail": (True, 1 / 60., 1),
Expand Down
15 changes: 3 additions & 12 deletions common/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,13 @@ common_libs = [
'params.cc',
'swaglog.cc',
'util.cc',
'i2c.cc',
'watchdog.cc',
'ratekeeper.cc'
]

if arch != "Darwin":
common_libs.append('gpio.cc')

_common = env.Library('common', common_libs, LIBS="json11")

files = [
'ratekeeper.cc',
'clutil.cc',
]

_gpucommon = env.Library('gpucommon', files)
Export('_common', '_gpucommon')
_common = env.Library('common', common_libs, LIBS="json11")
Export('_common')

if GetOption('extras'):
env.Program('tests/test_common',
Expand Down
23 changes: 23 additions & 0 deletions common/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import numpy as np

# conversions
class CV:
# Speed
MPH_TO_KPH = 1.609344
KPH_TO_MPH = 1. / MPH_TO_KPH
MS_TO_KPH = 3.6
KPH_TO_MS = 1. / MS_TO_KPH
MS_TO_MPH = MS_TO_KPH * KPH_TO_MPH
MPH_TO_MS = MPH_TO_KPH * KPH_TO_MS
MS_TO_KNOTS = 1.9438
KNOTS_TO_MS = 1. / MS_TO_KNOTS

# Angle
DEG_TO_RAD = np.pi / 180.
RAD_TO_DEG = 1. / DEG_TO_RAD

# Mass
LB_TO_KG = 0.453592


ACCELERATION_DUE_TO_GRAVITY = 9.81 # m/s^2
17 changes: 17 additions & 0 deletions common/filter_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ def update(self, x):
self.x = x
return self.x


class BounceFilter(FirstOrderFilter):
def __init__(self, x0, rc, dt, initialized=True, bounce=2):
self.velocity = FirstOrderFilter(0.0, 0.15, dt)
self.bounce = bounce
super().__init__(x0, rc, dt, initialized)

def update(self, x):
super().update(x)
scale = self.dt / (1.0 / 60.0) # tuned at 60 fps
self.velocity.x += (x - self.x) * self.bounce * scale * self.dt
self.velocity.update(0.0)
if abs(self.velocity.x) < 1e-5:
self.velocity.x = 0.0
self.x += self.velocity.x
return self.x

class MyMovingAverage:
def __init__(self, window_size, value=None):
self.window_size = window_size
Expand Down
84 changes: 0 additions & 84 deletions common/gpio.cc

This file was deleted.

33 changes: 0 additions & 33 deletions common/gpio.h

This file was deleted.

92 changes: 0 additions & 92 deletions common/i2c.cc

This file was deleted.

19 changes: 0 additions & 19 deletions common/i2c.h

This file was deleted.

2 changes: 1 addition & 1 deletion common/mock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


MOCK_GENERATOR = {
"livePose": generate_livePose
"livePose": generate_livePose,
"liveLocationKalman": generate_liveLocationKalman
}

Expand Down
4 changes: 4 additions & 0 deletions common/params_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ inline static std::unordered_map<std::string, uint32_t> keys = {
{"AutoNaviSpeedSafetyFactor", PERSISTENT},
{"AutoNaviCountDownMode", PERSISTENT},
{"TurnSpeedControlMode", PERSISTENT},
{"CarrotSmartSpeedControl", PERSISTENT},
{"MapTurnSpeedFactor", PERSISTENT},
{"ModelTurnSpeedFactor", PERSISTENT},
{"StoppingAccel", PERSISTENT},
Expand Down Expand Up @@ -281,6 +282,9 @@ inline static std::unordered_map<std::string, uint32_t> keys = {
{"MuteDoor", PERSISTENT},
{"MuteSeatbelt", PERSISTENT},
{"CarrotException", CLEAR_ON_MANAGER_START},
{"CarrotSpeed", PERSISTENT},
{"CarrotSpeedViz", PERSISTENT},
{"CarrotSpeedTable", PERSISTENT},
{"CarName", PERSISTENT},
{"EVTable", PERSISTENT},
{"LongPitch", PERSISTENT},
Expand Down
Loading
Loading