Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@HolyChris
Created November 6, 2019 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HolyChris/9617239ce7bafce8e7eee19c77049d73 to your computer and use it in GitHub Desktop.
Save HolyChris/9617239ce7bafce8e7eee19c77049d73 to your computer and use it in GitHub Desktop.
Turn off Hazards for Misty II
curl -X POST \
http://IPADDRESS/api/hazard/updatebasesettings \
-d '{
"bumpSensorsEnabled":[
{"sensorName":"Bump_FrontRight","enabled":true},
{"sensorName":"Bump_FrontLeft","enabled":true},
{"sensorName":"Bump_RearRight","enabled":true},
{"sensorName":"Bump_RearLeft","enabled":true}
],
"timeOfFlightThresholds":[
{"sensorName":"TOF_DownFrontRight","threshold":0},
{"sensorName":"TOF_DownFrontLeft","threshold":0},
{"sensorName":"TOF_DownBackRight","threshold":0},
{"sensorName":"TOF_DownBackLeft","threshold":0},
{"sensorName":"TOF_Right","threshold":0.1},
{"sensorName":"TOF_Left","threshold":0.1},
{"sensorName":"TOF_Center","threshold":0.1},
{"sensorName":"TOF_Back","threshold":0.1}
]
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment