debug: test pca9685 python implementation
This commit is contained in:
parent
3f31891de1
commit
de8e22db1d
@ -186,11 +186,13 @@ spec:
|
|||||||
- name: pca9685
|
- name: pca9685
|
||||||
image: docker.io/cyrilix/robocar-pca9685-python
|
image: docker.io/cyrilix/robocar-pca9685-python
|
||||||
args:
|
args:
|
||||||
|
- "steering"
|
||||||
- "--i2c-bus=1"
|
- "--i2c-bus=1"
|
||||||
- "--i2c-address=40"
|
- "--i2c-address=40"
|
||||||
- "--pca9685-channel=0"
|
- "--pca9685-channel=0"
|
||||||
- "--left-pulse=$(STEERING_LEFT_PWM)"
|
- "--left-pulse=$(STEERING_LEFT_PWM)"
|
||||||
- "--right-pulse=$(STEERING_RIGHT_PWM)"
|
- "--right-pulse=$(STEERING_RIGHT_PWM)"
|
||||||
|
- "--debug"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 1234
|
||||||
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
||||||
@ -202,7 +204,7 @@ spec:
|
|||||||
- name: MQTT_BROKER
|
- name: MQTT_BROKER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: MQTT_BROKER
|
key: MQTT_BROKER_HOST
|
||||||
name: robocar
|
name: robocar
|
||||||
- name: MQTT_USERNAME
|
- name: MQTT_USERNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@ -215,7 +217,7 @@ spec:
|
|||||||
key: MQTT_PASSWORD
|
key: MQTT_PASSWORD
|
||||||
name: mqtt-credentials
|
name: mqtt-credentials
|
||||||
- name: MQTT_CLIENT_ID
|
- name: MQTT_CLIENT_ID
|
||||||
value: rc-pca9685
|
value: rc-pca9685-steering
|
||||||
- name: MQTT_TOPIC
|
- name: MQTT_TOPIC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
@ -266,15 +268,17 @@ spec:
|
|||||||
component: pca9685
|
component: pca9685
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pca9685-steering
|
- name: pca9685-throttle
|
||||||
image: docker.io/cyrilix/robocar-pca9685-python
|
image: docker.io/cyrilix/robocar-pca9685-python
|
||||||
args:
|
args:
|
||||||
|
- "throttle"
|
||||||
- "--zero-pulse=378"
|
- "--zero-pulse=378"
|
||||||
- "--min-pulse=250"
|
- "--min-pulse=250"
|
||||||
- "--max-pulse=500"
|
- "--max-pulse=500"
|
||||||
- "--i2c-bus=1"
|
- "--i2c-bus=1"
|
||||||
- "--i2c-address=40"
|
- "--i2c-address=40"
|
||||||
- "--pca9685-channel=1"
|
- "--pca9685-channel=1"
|
||||||
|
- "--debug"
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1234
|
runAsUser: 1234
|
||||||
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
runAsGroup: 998 # Set 998/i2c group to access to i2c device
|
||||||
@ -286,7 +290,7 @@ spec:
|
|||||||
- name: MQTT_BROKER
|
- name: MQTT_BROKER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
key: MQTT_BROKER
|
key: MQTT_BROKER_HOST
|
||||||
name: robocar
|
name: robocar
|
||||||
- name: MQTT_USERNAME
|
- name: MQTT_USERNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@ -299,7 +303,7 @@ spec:
|
|||||||
key: MQTT_PASSWORD
|
key: MQTT_PASSWORD
|
||||||
name: mqtt-credentials
|
name: mqtt-credentials
|
||||||
- name: MQTT_CLIENT_ID
|
- name: MQTT_CLIENT_ID
|
||||||
value: rc-pca9685
|
value: rc-pca9685-throttle
|
||||||
- name: MQTT_TOPIC
|
- name: MQTT_TOPIC
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
|
@ -14,7 +14,7 @@ images:
|
|||||||
newTag: v0.3.0
|
newTag: v0.3.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-pca9685-python
|
- name: docker.io/cyrilix/robocar-pca9685-python
|
||||||
newTag: v0.1.0
|
newTag: v0.1.0-12-g2966f92
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-oak-camera
|
- name: docker.io/cyrilix/robocar-oak-camera
|
||||||
newTag: v0.1.0
|
newTag: v0.1.0
|
Loading…
Reference in New Issue
Block a user