Skip to content

SD card documentation

Voidless7125 edited this page Sep 18, 2024 · 1 revision

SD card documentation

Requirements for SD card

SD card requirements

  • SD Card should be SDHC type, but not a requirement.
  • Needs to be formatted with FAT32 file system.
  • The brain can only read and write in sizes up to 16GB, so you can make the partition a max of 16gb.

File/Folder structure

Logo

/assets: Store .png files, or .gif for any images for printing your logo to the brain.

Backup

/backup: Stores latest source code in case you need it.

Config file

config.cfg: Stores config file for the settings of the robot.

config.cfg:

MOTOR_CONFIG
{
  FRONT_LEFT_MOTOR
  {
      PORT=1
      GEAR_RATIO=6_1
      REVERSED=false
  }
  FRONT_RIGHT_MOTOR
  {
      PORT=10
      GEAR_RATIO=6_1
      REVERSED=true
  }
  REAR_LEFT_MOTOR
  {
      PORT=11
      GEAR_RATIO=6_1
      REVERSED=false
  }
  REAR_RIGHT_MOTOR
  {
      PORT=20
      GEAR_RATIO=6_1
      REVERSED=true
  }
  INERTIAL
  {
      PORT=3
  }
  Rear_Bumper
  {
      PORT=A
  }
  PRINTLOGO=true
  LOGTOFILE=true
  MAXOPTIONSSIZE=4
  POLLINGRATE=5
  CTRLR1POLLINGRATE=25
  VERSION=3.0b2
}

log.txt: File for logs, in case the program needs debugging, these logs are helpful.

Q&A

Q: Is a SD required?
A: No, it is not. However, logging to a file, and configs will not be able to be stored without a SD card.

Clone this wiki locally