refactor: unify pwm config for arduino and pca9685
This commit is contained in:
parent
e1602339ee
commit
bbf4328e6c
@ -1,19 +0,0 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: robocar-pca9685
|
||||
data:
|
||||
################
|
||||
# STEERING PWM #
|
||||
################
|
||||
STEERING_LEFT_PWM: "1092"
|
||||
STEERING_RIGHT_PWM: "1986"
|
||||
STEERING_CENTER_PWM: "1583"
|
||||
|
||||
################
|
||||
# THROTTLE PWM #
|
||||
################
|
||||
THROTTLE_MIN_PWM: "1092"
|
||||
THROTTLE_MAX_PWM: "1986"
|
||||
THROTTLE_ZERO_PWM: "1583"
|
@ -237,32 +237,32 @@ spec:
|
||||
- name: STEERING_LEFT_PWM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: robocar-pca9685
|
||||
name: robocar-steering-pwm
|
||||
key: STEERING_LEFT_PWM
|
||||
- name: STEERING_RIGHT_PWM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: robocar-pca9685
|
||||
name: robocar-steering-pwm
|
||||
key: STEERING_RIGHT_PWM
|
||||
- name: STEERING_CENTER_PWM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: robocar-pca9685
|
||||
name: robocar-steering-pwm
|
||||
key: STEERING_CENTER_PWM
|
||||
- name: THROTTLE_MIN_PWM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: robocar-pca9685
|
||||
name: robocar-throttle-pwm
|
||||
key: THROTTLE_MIN_PWM
|
||||
- name: THROTTLE_MAX_PWM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: robocar-pca9685
|
||||
name: robocar-throttle-pwm
|
||||
key: THROTTLE_MAX_PWM
|
||||
- name: THROTTLE_ZERO_PWM
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: robocar-pca9685
|
||||
name: robocar-throttle-pwm
|
||||
key: THROTTLE_ZERO_PWM
|
||||
- name: TZ
|
||||
value: "Europe/Paris"
|
||||
|
@ -7,7 +7,6 @@ namespace: robocar
|
||||
resources:
|
||||
- ../common
|
||||
- deployments.yaml
|
||||
- configmap.yaml
|
||||
|
||||
images:
|
||||
- name: docker.io/cyrilix/robocar-camera
|
||||
|
@ -57,7 +57,18 @@ data:
|
||||
STEERING_LEFT_PWM: "1002"
|
||||
STEERING_RIGHT_PWM: "1985"
|
||||
STEERING_CENTER_PWM: "1491"
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: robocar-throttle-pwm
|
||||
data:
|
||||
################
|
||||
# THROTTLE PWM #
|
||||
################
|
||||
THROTTLE_MIN_PWM: "1092"
|
||||
THROTTLE_MAX_PWM: "1986"
|
||||
THROTTLE_ZERO_PWM: "1583"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
|
Loading…
Reference in New Issue
Block a user