Team2068 / Muhkeighnzeigh

2023 Charged Up Code
Other
0 stars 0 forks source link

Fingerprint Practice robot via Environment Variable #18

Closed schineaj23 closed 1 year ago

schineaj23 commented 1 year ago

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)

  1. Open terminal and connect to the roboRIO with the lvuser account. ssh lvuser@10.20.68.2
  2. Navigate to the home directory cd ~
  3. 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
  4. Log out of ssh session

NOTE: this change will NOT persist when formatting/updating the roboRIO to a new firmware version.