Data Types - SuitBots/ring-it-up GitHub Wiki

Suit Bots Data Types

  • peg_t
  • returns LEFT, MIDDLE, RIGHT, or NONE
  • side_t
  • returns RED, BLUE, orUNDETERMINED

Standard C Data Types

  • bool
  • returns true or false
  • byte
  • returns a value from -128 to 127
  • char
  • returns a value from -128 to 127. Can be interpreted as a character (42 = 'B' and vice versa)
  • float
  • returns a floating-point (decimal) number with the following length and accuracy restrictions:
  • 0.#### 0.0000 to +2,048.0000
  • 0.### 0.000 to +32,768.000
  • 0.## 0.00 to +262,144.00
  • 0.# 0.0 to +2,097,200.0
  • long
  • returns a value from -2,147,483,648 to 2,147,483,647
  • int
  • returns a value from -32,768 to 32,767
  • short
  • returns a value from -32,768 to 32,767
  • string
  • returns a sequence of characters
  • word
  • returns a value from -32,768 to 32,767
  • ubyte
  • returns a value from 0 to 255
  • void
  • returns nothing