refactor: add context logs
This commit is contained in:
1 parent
e9440a6501
commit
79193c1d69
3 files changed
+22
-10
No files matched your search
@@ -129,6 +129,7 @@ func main() {
|
||||
throttleChannel,
|
||||
actuator.PWM(throttleMinPWM), actuator.PWM(throttleMaxPWM), actuator.PWM(throttleStoppedPWM),
|
||||
freq,
|
||||
zap.S().With("actuator", "throttle"),
|
||||
)
|
||||
if err != nil {
|
||||
zap.S().Panicf("unable to init throttle controller: %v", err)
|
||||
@@ -139,6 +140,7 @@ func main() {
|
||||
steeringChannel,
|
||||
actuator.PWM(steeringLeftPWM), actuator.PWM(steeringRightPWM), actuator.PWM(steeringCenterPWM),
|
||||
freq,
|
||||
zap.S().With("actuator", "steering"),
|
||||
)
|
||||
if err != nil {
|
||||
zap.S().Panicf("unable to init steering controller: %v", err)
|
||||
|
||||
Reference in new issue
Block a user