RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
robotCore.Device Class Reference

Device. More...

Classes

enum  PinType
class  V3
class  V4

Static Public Attributes

static boolean PCTest = false
static final int PA0 = 0
static final int PA1 = 1
static final int PA2 = 2
static final int PA3 = 3
static final int PA4 = 4
static final int PA5 = 5
static final int PA6 = 6
static final int PA7 = 7
static final int PA8 = 8
static final int PA9 = 9
static final int PA10 = 10
static final int PA11 = 11
static final int PA12 = 12
static final int PA13 = 13
static final int PA14 = 14
static final int PA15 = 15
static final int PB0 = 16
static final int PB1 = 17
static final int PB2 = 18
static final int PB3 = 19
static final int PB4 = 20
static final int PB5 = 21
static final int PB6 = 22
static final int PB7 = 23
static final int PB8 = 24
static final int PB9 = 25
static final int PB10 = 26
static final int PB11 = 27
static final int PB12 = 28
static final int PB13 = 29
static final int PB14 = 30
static final int PB15 = 31
static final int PC13 = 32
static final int PC14 = 33
static final int PC15 = 34
static int M1_1_DIR = Device.PA8
static final int M1_1_PWM = Device.PA1
static int M1_2_DIR = Device.PA9
static final int M1_2_PWM = Device.PA0
static final int M2_1_DIR = Device.PB15
static final int M2_1_PWM = Device.PA3
static final int M2_2_DIR = Device.PB14
static final int M2_2_PWM = Device.PA2
static final int M3_1_DIR = Device.PB13
static final int M3_1_PWM = Device.PA7
static int M3_2_DIR = Device.PC14
static final int M3_2_PWM = Device.PA6
static int A1_A = Device.PA4
static int A1_B = Device.PA5
static int A2_A = Device.PB0
static int A2_B = Device.PB1
static final int Q1_INT = Device.PB3
static final int Q1_DIR = Device.PA15
static final int Q2_INT = Device.PB4
static final int Q2_DIR = Device.PA12
static final int Q3_INT = Device.PB5
static final int Q3_DIR = Device.PC13
static int Q4_INT = Device.PB12
static int Q4_DIR = Device.PC15
static final int Q5_INT = Device.PB0
static int Q5_DIR = Device.PB1
static int IO_1 = PA11
static int IO_2 = PA10
static int IO_3 = PA9
static int IO_4 = PA8

Detailed Description

Device.

   This class controls the microcontroller device.

Definition at line 40 of file Device.java.

Member Data Documentation

◆ A1_A

int robotCore.Device.A1_A = Device.PA4
static

Pin 1 for analog encoder 1

Definition at line 293 of file Device.java.

◆ A1_B

int robotCore.Device.A1_B = Device.PA5
static

Pin 2 for analog encoder 1

Definition at line 297 of file Device.java.

◆ A2_A

int robotCore.Device.A2_A = Device.PB0
static

Pin 1 for analog encoder 2. Note that this pin is shared with Q5

Definition at line 302 of file Device.java.

◆ A2_B

int robotCore.Device.A2_B = Device.PB1
static

Pin 2 for analog encoder 2. Note that this pin is shared with Q5

Definition at line 307 of file Device.java.

◆ IO_1

int robotCore.Device.IO_1 = PA11
static

General I/O pin 1

Definition at line 357 of file Device.java.

◆ IO_2

int robotCore.Device.IO_2 = PA10
static

General I/O pin 2

Definition at line 361 of file Device.java.

◆ IO_3

int robotCore.Device.IO_3 = PA9
static

General I/O pin 3. Note that this pin is shared with M1-1

Definition at line 366 of file Device.java.

◆ IO_4

int robotCore.Device.IO_4 = PA8
static

General I/O pin 4. Note that this pin is shared with M1-2

Definition at line 371 of file Device.java.

◆ M1_1_DIR

int robotCore.Device.M1_1_DIR = Device.PA8
static

Direction pin for motor 1-1. Note that this pin is shared with IO-4

Definition at line 243 of file Device.java.

◆ M1_1_PWM

final int robotCore.Device.M1_1_PWM = Device.PA1
static

PWM pin for motor 1-1

Definition at line 247 of file Device.java.

◆ M1_2_DIR

int robotCore.Device.M1_2_DIR = Device.PA9
static

Direction pin for motor 1-2 Note that this pin is shared with IO-3

Definition at line 252 of file Device.java.

◆ M1_2_PWM

final int robotCore.Device.M1_2_PWM = Device.PA0
static

PWM pin for motor 1-2

Definition at line 256 of file Device.java.

◆ M2_1_DIR

final int robotCore.Device.M2_1_DIR = Device.PB15
static

Direction pin for motor 2-1

Definition at line 260 of file Device.java.

◆ M2_1_PWM

final int robotCore.Device.M2_1_PWM = Device.PA3
static

PWM pin for motor 2-1

Definition at line 264 of file Device.java.

◆ M2_2_DIR

final int robotCore.Device.M2_2_DIR = Device.PB14
static

Direction pin for motor 2-2

Definition at line 268 of file Device.java.

◆ M2_2_PWM

final int robotCore.Device.M2_2_PWM = Device.PA2
static

PWM pin for motor 2-2

Definition at line 272 of file Device.java.

◆ M3_1_DIR

final int robotCore.Device.M3_1_DIR = Device.PB13
static

Direction pin for motor 3-1

Definition at line 276 of file Device.java.

◆ M3_1_PWM

final int robotCore.Device.M3_1_PWM = Device.PA7
static

PWM pin for motor 3-1

Definition at line 280 of file Device.java.

◆ M3_2_DIR

int robotCore.Device.M3_2_DIR = Device.PC14
static

Direction pin for motor 3-2

Definition at line 284 of file Device.java.

◆ M3_2_PWM

final int robotCore.Device.M3_2_PWM = Device.PA6
static

PWM pin for motor 3-2

Definition at line 288 of file Device.java.

◆ PA0

final int robotCore.Device.PA0 = 0
static

Definition at line 51 of file Device.java.

◆ PA1

final int robotCore.Device.PA1 = 1
static

Definition at line 52 of file Device.java.

◆ PA10

final int robotCore.Device.PA10 = 10
static

Definition at line 61 of file Device.java.

◆ PA11

final int robotCore.Device.PA11 = 11
static

Definition at line 62 of file Device.java.

◆ PA12

final int robotCore.Device.PA12 = 12
static

Definition at line 63 of file Device.java.

◆ PA13

final int robotCore.Device.PA13 = 13
static

Definition at line 64 of file Device.java.

◆ PA14

final int robotCore.Device.PA14 = 14
static

Definition at line 65 of file Device.java.

◆ PA15

final int robotCore.Device.PA15 = 15
static

Definition at line 66 of file Device.java.

◆ PA2

final int robotCore.Device.PA2 = 2
static

Definition at line 53 of file Device.java.

◆ PA3

final int robotCore.Device.PA3 = 3
static

Definition at line 54 of file Device.java.

◆ PA4

final int robotCore.Device.PA4 = 4
static

Definition at line 55 of file Device.java.

◆ PA5

final int robotCore.Device.PA5 = 5
static

Definition at line 56 of file Device.java.

◆ PA6

final int robotCore.Device.PA6 = 6
static

Definition at line 57 of file Device.java.

◆ PA7

final int robotCore.Device.PA7 = 7
static

Definition at line 58 of file Device.java.

◆ PA8

final int robotCore.Device.PA8 = 8
static

Definition at line 59 of file Device.java.

◆ PA9

final int robotCore.Device.PA9 = 9
static

Definition at line 60 of file Device.java.

◆ PB0

final int robotCore.Device.PB0 = 16
static

Definition at line 68 of file Device.java.

◆ PB1

final int robotCore.Device.PB1 = 17
static

Definition at line 69 of file Device.java.

◆ PB10

final int robotCore.Device.PB10 = 26
static

Definition at line 78 of file Device.java.

◆ PB11

final int robotCore.Device.PB11 = 27
static

Definition at line 79 of file Device.java.

◆ PB12

final int robotCore.Device.PB12 = 28
static

Definition at line 80 of file Device.java.

◆ PB13

final int robotCore.Device.PB13 = 29
static

Definition at line 81 of file Device.java.

◆ PB14

final int robotCore.Device.PB14 = 30
static

Definition at line 82 of file Device.java.

◆ PB15

final int robotCore.Device.PB15 = 31
static

Definition at line 83 of file Device.java.

◆ PB2

final int robotCore.Device.PB2 = 18
static

Definition at line 70 of file Device.java.

◆ PB3

final int robotCore.Device.PB3 = 19
static

Definition at line 71 of file Device.java.

◆ PB4

final int robotCore.Device.PB4 = 20
static

Definition at line 72 of file Device.java.

◆ PB5

final int robotCore.Device.PB5 = 21
static

Definition at line 73 of file Device.java.

◆ PB6

final int robotCore.Device.PB6 = 22
static

Definition at line 74 of file Device.java.

◆ PB7

final int robotCore.Device.PB7 = 23
static

Definition at line 75 of file Device.java.

◆ PB8

final int robotCore.Device.PB8 = 24
static

Definition at line 76 of file Device.java.

◆ PB9

final int robotCore.Device.PB9 = 25
static

Definition at line 77 of file Device.java.

◆ PC13

final int robotCore.Device.PC13 = 32
static

Definition at line 85 of file Device.java.

◆ PC14

final int robotCore.Device.PC14 = 33
static

Definition at line 86 of file Device.java.

◆ PC15

final int robotCore.Device.PC15 = 34
static

Definition at line 87 of file Device.java.

◆ PCTest

boolean robotCore.Device.PCTest = false
static

Definition at line 49 of file Device.java.

◆ Q1_DIR

final int robotCore.Device.Q1_DIR = Device.PA15
static

Direction pin for quad encoder 1

Definition at line 316 of file Device.java.

◆ Q1_INT

final int robotCore.Device.Q1_INT = Device.PB3
static

Interrupt pin for quad encoder 1

Definition at line 312 of file Device.java.

◆ Q2_DIR

final int robotCore.Device.Q2_DIR = Device.PA12
static

Direction pin for quad encoder 2

Definition at line 324 of file Device.java.

◆ Q2_INT

final int robotCore.Device.Q2_INT = Device.PB4
static

Interrupt pin for quad encoder 2

Definition at line 320 of file Device.java.

◆ Q3_DIR

final int robotCore.Device.Q3_DIR = Device.PC13
static

Direction pin for quad encoder 3

Definition at line 333 of file Device.java.

◆ Q3_INT

final int robotCore.Device.Q3_INT = Device.PB5
static

Interrupt pin for quad encoder 3

Definition at line 329 of file Device.java.

◆ Q4_DIR

int robotCore.Device.Q4_DIR = Device.PC15
static

Direction pin for quad encoder 4

Definition at line 342 of file Device.java.

◆ Q4_INT

int robotCore.Device.Q4_INT = Device.PB12
static

Interrupt pin for quad encoder 4

Definition at line 338 of file Device.java.

◆ Q5_DIR

int robotCore.Device.Q5_DIR = Device.PB1
static

Direction pin for quad encoder 5. Note that this pin is shared with A2

Definition at line 352 of file Device.java.

◆ Q5_INT

final int robotCore.Device.Q5_INT = Device.PB0
static

Interrupt pin for quad encoder 5. Note that this pin is shared with A2

Definition at line 347 of file Device.java.


The documentation for this class was generated from the following file: