diff --git a/ansible/roles/microservices/files/robocar/car/deployments.yaml b/ansible/roles/microservices/files/robocar/car/deployments.yaml index e54c96b..6e88b3d 100644 --- a/ansible/roles/microservices/files/robocar/car/deployments.yaml +++ b/ansible/roles/microservices/files/robocar/car/deployments.yaml @@ -192,7 +192,8 @@ spec: - "--steering-left-pwm=$(STEERING_LEFT_PWM)" - "--steering-right-pwm=$(STEERING_RIGHT_PWM)" - "--steering-center-pwm=$(STEERING_CENTER_PWM)" - - "--update-pwm-frequency=25" + - "--pwm-freq=60" + - "--update-pwm-frequency=5" - "--log=info" securityContext: runAsUser: 1234 diff --git a/ansible/roles/microservices/files/robocar/car/kustomization.yaml b/ansible/roles/microservices/files/robocar/car/kustomization.yaml index 204b42d..29791ce 100644 --- a/ansible/roles/microservices/files/robocar/car/kustomization.yaml +++ b/ansible/roles/microservices/files/robocar/car/kustomization.yaml @@ -13,7 +13,7 @@ images: newTag: v0.3.0 - name: docker.io/cyrilix/robocar-pca9685 - newTag: v0.6.1 + newTag: v0.6.3 - name: docker.io/cyrilix/robocar-oak-camera newTag: v0.1.0 \ No newline at end of file diff --git a/ansible/roles/microservices/files/robocar/common/configmap.yaml b/ansible/roles/microservices/files/robocar/common/configmap.yaml index c3c9269..0f35b5c 100644 --- a/ansible/roles/microservices/files/robocar/common/configmap.yaml +++ b/ansible/roles/microservices/files/robocar/common/configmap.yaml @@ -40,8 +40,9 @@ data: ############ # Throttle # ############ - THROTTLE_MIN: "0.25" - THROTTLE_MAX: "0.4" + # Min value to start is 0.12 + THROTTLE_MIN: "0.12" + THROTTLE_MAX: "0.12" --- apiVersion: v1 kind: ConfigMap @@ -66,9 +67,9 @@ data: #THROTTLE_MIN_PWM: "1092" #THROTTLE_MAX_PWM: "1986" #THROTTLE_ZERO_PWM: "1583" - THROTTLE_MIN_PWM: "967" - THROTTLE_MAX_PWM: "1966" - THROTTLE_ZERO_PWM: "1460" + THROTTLE_MIN_PWM: "960" + THROTTLE_MAX_PWM: "1949" + THROTTLE_ZERO_PWM: "1452" --- apiVersion: v1 kind: ConfigMap diff --git a/ansible/roles/microservices/files/robocar/common/deployments.yaml b/ansible/roles/microservices/files/robocar/common/deployments.yaml index 446d15c..e995421 100644 --- a/ansible/roles/microservices/files/robocar/common/deployments.yaml +++ b/ansible/roles/microservices/files/robocar/common/deployments.yaml @@ -28,6 +28,9 @@ spec: - "--steering-left-pwm=$(STEERING_LEFT_PWM)" - "--steering-right-pwm=$(STEERING_RIGHT_PWM)" - "--steering-center-pwm=$(STEERING_CENTER_PWM)" + - "--throttle-zero-pwm=$(THROTTLE_ZERO_PWM)" + - "--throttle-min-pwm=$(THROTTLE_MIN_PWM)" + - "--throttle-max-pwm=$(THROTTLE_MAX_PWM)" - "-log=info" volumeMounts: - mountPath: "/dev/ttyAMA0" @@ -91,6 +94,22 @@ spec: configMapKeyRef: name: robocar-steering-pwm key: STEERING_CENTER_PWM + + - name: THROTTLE_MIN_PWM + valueFrom: + configMapKeyRef: + name: robocar-throttle-pwm + key: THROTTLE_MIN_PWM + - name: THROTTLE_MAX_PWM + valueFrom: + configMapKeyRef: + name: robocar-throttle-pwm + key: THROTTLE_MAX_PWM + - name: THROTTLE_ZERO_PWM + valueFrom: + configMapKeyRef: + name: robocar-throttle-pwm + key: THROTTLE_ZERO_PWM - name: TZ value: "Europe/Paris" volumes: @@ -380,7 +399,7 @@ spec: image: docker.io/cyrilix/robocar-throttle args: - "-mqtt-retain=false" - - "-debug=false" + - "-log=info" securityContext: runAsUser: 1234 runAsGroup: 1234 diff --git a/ansible/roles/microservices/files/robocar/common/kustomization.yaml b/ansible/roles/microservices/files/robocar/common/kustomization.yaml index a5d4ca3..7b63b63 100644 --- a/ansible/roles/microservices/files/robocar/common/kustomization.yaml +++ b/ansible/roles/microservices/files/robocar/common/kustomization.yaml @@ -10,7 +10,7 @@ resources: images: - name: docker.io/cyrilix/robocar-arduino - newTag: v0.7.1 + newTag: v0.8.0 - name: docker.io/cyrilix/robocar-led newTag: v0.5.1 @@ -19,7 +19,7 @@ images: newTag: v0.5.0 - name: docker.io/cyrilix/robocar-throttle - newTag: v0.4.2 + newTag: v0.5.0 - name: docker.io/cyrilix/robocar-record newTag: v0.5.1