Tell the two chassis apart via an environment variable on the practice robot. This is so that we can push to their robot without manually changing a variable each time. This makes sure that we don't accidentally have incorrect offsets.
I made the variable present only on the practice bot, don't want to accidentally have incorrect robots on the main bot due to not finding an environment variable lol.
I set the environment variable with this process (for future reference)
Open terminal and connect to the roboRIO with the lvuser account. ssh lvuser@10.20.68.2
Navigate to the home directory cd ~
Opened the .profile file with vi (vi .profile) and set the variable PRACTICE_ROBOT
This is done by adding the line export PRACTICE_ROBOT=true at the end of the file
Log out of ssh session
NOTE: this change will NOT persist when formatting/updating the roboRIO to a new firmware version.
Tell the two chassis apart via an environment variable on the practice robot. This is so that we can push to their robot without manually changing a variable each time. This makes sure that we don't accidentally have incorrect offsets. I made the variable present only on the practice bot, don't want to accidentally have incorrect robots on the main bot due to not finding an environment variable lol.
I set the environment variable with this process (for future reference)
ssh lvuser@10.20.68.2
cd ~
.profile
file with vi (vi .profile
) and set the variablePRACTICE_ROBOT
This is done by adding the lineexport PRACTICE_ROBOT=true
at the end of the fileNOTE: this change will NOT persist when formatting/updating the roboRIO to a new firmware version.