User Tools

Site Tools


introduction_to_frc_programming

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
introduction_to_frc_programming [2026/04/08 14:34] ztif33introduction_to_frc_programming [2026/04/08 14:47] (current) – [Variable - Object] ztif33
Line 1: Line 1:
-~~SLIDESHOW dokuwiki~~+~~SLIDESHOW i18n~~
  
 ====== Introduction to FRC Programming ====== ====== Introduction to FRC Programming ======
Line 49: Line 49:
   * Text   * Text
   * References to hardware   * References to hardware
 +
 +===== Variable Examples =====
  
 <code java> <code java>
Line 61: Line 63:
 public double driveRatio = 1.0/8.45; public double driveRatio = 1.0/8.45;
 </code> </code>
 +
 +===== Variable - Primitives =====
 +
 +|  | Type | Description |
 +| Boolean | bool | true or false, 0 or 1 |
 +| Integers | byte | Whole number from -128 to 127 |
 +| ::: | short | Whole number from -32,768 to 32,767 |
 +| ::: | int | Whole number from -2,147,483,648 to 2,147,483,647 |
 +| ::: | long | Whole number -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
 +| Floating Point | float | Fractional Number Significant to 6 to 7 decimal places |
 +| ::: | double | Fractional Number Significant to 15 decimal places |
 +| Character | char | Stores a single character/letter or ASCII values |
 +
 +===== Variable - Object =====
 +  * An object is a collection of variables and methods. 
 +  * Used to logically group things together in programs.
 +    * Example: The Drivetrain object includes all the drive motors
 +  * Fundamental part of java
 +
 +----
 +
 +All variables in Java, except for primitive types, are an object. 
 +
 +
 +
 +
introduction_to_frc_programming.1775673248.txt.gz · Last modified: by ztif33