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
|
- name: STEERING_LEFT_PWM
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: robocar-pca9685
|
name: robocar-steering-pwm
|
||||||
key: STEERING_LEFT_PWM
|
key: STEERING_LEFT_PWM
|
||||||
- name: STEERING_RIGHT_PWM
|
- name: STEERING_RIGHT_PWM
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: robocar-pca9685
|
name: robocar-steering-pwm
|
||||||
key: STEERING_RIGHT_PWM
|
key: STEERING_RIGHT_PWM
|
||||||
- name: STEERING_CENTER_PWM
|
- name: STEERING_CENTER_PWM
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: robocar-pca9685
|
name: robocar-steering-pwm
|
||||||
key: STEERING_CENTER_PWM
|
key: STEERING_CENTER_PWM
|
||||||
- name: THROTTLE_MIN_PWM
|
- name: THROTTLE_MIN_PWM
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: robocar-pca9685
|
name: robocar-throttle-pwm
|
||||||
key: THROTTLE_MIN_PWM
|
key: THROTTLE_MIN_PWM
|
||||||
- name: THROTTLE_MAX_PWM
|
- name: THROTTLE_MAX_PWM
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: robocar-pca9685
|
name: robocar-throttle-pwm
|
||||||
key: THROTTLE_MAX_PWM
|
key: THROTTLE_MAX_PWM
|
||||||
- name: THROTTLE_ZERO_PWM
|
- name: THROTTLE_ZERO_PWM
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: robocar-pca9685
|
name: robocar-throttle-pwm
|
||||||
key: THROTTLE_ZERO_PWM
|
key: THROTTLE_ZERO_PWM
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/Paris"
|
value: "Europe/Paris"
|
||||||
|
@ -7,7 +7,6 @@ namespace: robocar
|
|||||||
resources:
|
resources:
|
||||||
- ../common
|
- ../common
|
||||||
- deployments.yaml
|
- deployments.yaml
|
||||||
- configmap.yaml
|
|
||||||
|
|
||||||
images:
|
images:
|
||||||
- name: docker.io/cyrilix/robocar-camera
|
- name: docker.io/cyrilix/robocar-camera
|
||||||
|
@ -57,7 +57,18 @@ data:
|
|||||||
STEERING_LEFT_PWM: "1002"
|
STEERING_LEFT_PWM: "1002"
|
||||||
STEERING_RIGHT_PWM: "1985"
|
STEERING_RIGHT_PWM: "1985"
|
||||||
STEERING_CENTER_PWM: "1491"
|
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
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
Loading…
Reference in New Issue
Block a user