Refactor calibration constants and update travel snippet documentation

This commit is contained in:
alvinlollo
2026-10-09 15:01:43 +11:00
parent 1c241952fb
commit 39f561a23f
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -65,8 +65,8 @@
},
"DCMotorTravelDistance": {
"prefix": "MoveCm",
"body": "// Distance = ${1:30}cm, Speed = ${2:speedVar}\nboard.Move(${3:FORWARD}, ${4:POWER}, (#${1:30}*${2:speedVar}), ${5:COAST});",
"description": "Moves DC motor for a distance in cm (using #cm*Variable syntax)"
"body": "// Distance = ${1:30}cm, Speed = ${2:speedVar} (ms/cm)\nboard.Move(${3:FORWARD}, ${4:POWER}, (#${1:30}*${2:speedVar}), ${5:COAST});",
"description": "Moves DC motor for a distance in cm (using #cm*Variable syntax, ensure speedVar is ms/cm)"
},
"SetDCMotorCalibration": {
"prefix": "SetDCMotorCalibration",