iiii. How to add a new eye color¶
Here will be a first simple change to Vector's custom firmware, adding a new eye color to Vector!
How do?¶
- Open up the diode-os-victor folder in VSCode.
- Open up
engine/components/settingsCommManager.cpp - Modify line
66and add the name of your eye color to the end (ex: ROBOT_RED) and save. - Open up
resources/config/engine/eye_color_config.json - Copy one of the existing entries and paste it below the last entry, set the name of the eye color to the name you chose in step 2.
- Set the
hue/saturationto your desired values and save it. (You can preview them invector-ip:8889/consolevarsin the face tab) - Open up
tools/protobuf/gateway/public/settings.proto - Go to line ~78, add a new entry with your eye color and give it a number of the next number in the series and save.
- Open
resources/webserver/demoEngine.html - Go to line ~153 and add a new eye color entry into the list and save.
- Commit your changes, then build and deploy Victor onto a bot and test out your eye color!