It's working!
This commit is contained in:
parent
d1bfafba1a
commit
e0955aac8f
@ -7,6 +7,10 @@ data:
|
|||||||
################
|
################
|
||||||
# STEERING PWM #
|
# STEERING PWM #
|
||||||
################
|
################
|
||||||
|
#STEERING_LEFT_PWM: "1092"
|
||||||
|
#STEERING_RIGHT_PWM: "1986"
|
||||||
|
#STEERING_CENTER_PWM: "1583"
|
||||||
|
|
||||||
STEERING_LEFT_PWM: "1092"
|
STEERING_LEFT_PWM: "1092"
|
||||||
STEERING_RIGHT_PWM: "1986"
|
STEERING_RIGHT_PWM: "1986"
|
||||||
STEERING_CENTER_PWM: "1583"
|
STEERING_CENTER_PWM: "1583"
|
||||||
|
@ -195,15 +195,29 @@ spec:
|
|||||||
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
||||||
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
||||||
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
||||||
|
- "--steering-pin=GPIO6"
|
||||||
|
- "--throttle-pin=GPIO12"
|
||||||
- "--update-pwm-frequency=10"
|
- "--update-pwm-frequency=10"
|
||||||
- "--log=info"
|
- "--log=info"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 0
|
||||||
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
runAsGroup: 997 # Set 998/i2c group to access to i2c device
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- mountPath: /dev
|
||||||
|
name: dev
|
||||||
- mountPath: /dev/i2c-1
|
- mountPath: /dev/i2c-1
|
||||||
name: i2c
|
name: i2c
|
||||||
|
#- name: gpiomem
|
||||||
|
# mountPath: "/dev/gpiomem"
|
||||||
|
#- name: gpiochip0
|
||||||
|
# mountPath: "/dev/gpiochip0"
|
||||||
|
#- name: gpiochip1
|
||||||
|
# mountPath: "/dev/gpiochip1"
|
||||||
|
- name: sys
|
||||||
|
mountPath: "/sys"
|
||||||
|
#- name: vcio
|
||||||
|
# mountPath: "/dev/vcio"
|
||||||
env:
|
env:
|
||||||
- name: MQTT_BROKER
|
- name: MQTT_BROKER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@ -252,7 +266,29 @@ spec:
|
|||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "Europe/Paris"
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: dev
|
||||||
|
hostPath:
|
||||||
|
path: /dev
|
||||||
- name: i2c
|
- name: i2c
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev/i2c-1
|
path: /dev/i2c-1
|
||||||
type: CharDevice
|
type: CharDevice
|
||||||
|
- name: gpiomem
|
||||||
|
hostPath:
|
||||||
|
path: /dev/gpiomem
|
||||||
|
type: CharDevice
|
||||||
|
- name: gpiochip0
|
||||||
|
hostPath:
|
||||||
|
path: /dev/gpiochip0
|
||||||
|
type: CharDevice
|
||||||
|
- name: gpiochip1
|
||||||
|
hostPath:
|
||||||
|
path: /dev/gpiochip1
|
||||||
|
type: CharDevice
|
||||||
|
- name: sys
|
||||||
|
hostPath:
|
||||||
|
path: /sys
|
||||||
|
- name: vcio
|
||||||
|
hostPath:
|
||||||
|
path: /dev/vcio
|
||||||
|
type: CharDevice
|
||||||
|
@ -14,7 +14,7 @@ images:
|
|||||||
newTag: v0.3.0
|
newTag: v0.3.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-pca9685
|
- name: docker.io/cyrilix/robocar-pca9685
|
||||||
newTag: v0.5.0
|
newTag: v0.5.0-15-g1cc8d07
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-oak-camera
|
- name: docker.io/cyrilix/robocar-oak-camera
|
||||||
newTag: v0.1.0
|
newTag: v0.1.0
|
@ -4,6 +4,8 @@ metadata:
|
|||||||
name: robocar
|
name: robocar
|
||||||
data:
|
data:
|
||||||
# Broker configuration
|
# Broker configuration
|
||||||
|
#MQTT_BROKER_HOST: 192.168.217.19
|
||||||
|
#MQTT_BROKER: "tcp://192.168.217.19:1883"
|
||||||
MQTT_BROKER_HOST: 192.168.2.221
|
MQTT_BROKER_HOST: 192.168.2.221
|
||||||
MQTT_BROKER: "tcp://192.168.2.221:1883"
|
MQTT_BROKER: "tcp://192.168.2.221:1883"
|
||||||
#MQTT_BROKER: "tcp://mqtt.robocar.svc.cluster.local:1883"
|
#MQTT_BROKER: "tcp://mqtt.robocar.svc.cluster.local:1883"
|
||||||
|
@ -28,9 +28,9 @@ spec:
|
|||||||
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
- "--steering-left-pwm=$(STEERING_LEFT_PWM)"
|
||||||
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
- "--steering-right-pwm=$(STEERING_RIGHT_PWM)"
|
||||||
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
- "--steering-center-pwm=$(STEERING_CENTER_PWM)"
|
||||||
- "-log=info"
|
- "-log=debug"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/dev/ttyAMA1"
|
- mountPath: "/dev/ttyAMA0"
|
||||||
name: serial
|
name: serial
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
@ -96,7 +96,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: serial
|
- name: serial
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev/ttyAMA1
|
path: /dev/ttyAMA0
|
||||||
type: CharDevice
|
type: CharDevice
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -525,7 +525,7 @@ spec:
|
|||||||
image: docker.io/cyrilix/robocar-record
|
image: docker.io/cyrilix/robocar-record
|
||||||
args:
|
args:
|
||||||
- "-mqtt-retain=true"
|
- "-mqtt-retain=true"
|
||||||
- "-debug=false"
|
- "-debug=true"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 1234
|
||||||
runAsGroup: 1234
|
runAsGroup: 1234
|
||||||
|
@ -10,7 +10,7 @@ resources:
|
|||||||
|
|
||||||
images:
|
images:
|
||||||
- name: docker.io/cyrilix/robocar-arduino
|
- name: docker.io/cyrilix/robocar-arduino
|
||||||
newTag: v0.6.0
|
newTag: v0.6.0-3-gd15a7b5
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-led
|
- name: docker.io/cyrilix/robocar-led
|
||||||
newTag: v0.5.0
|
newTag: v0.5.0
|
||||||
|
Loading…
Reference in New Issue
Block a user