2010:Dashboard Packet documentation: Difference between revisions

From 1511Wookiee
Jump to navigationJump to search
(New page: High Priority -- cluster unchanged from FIRST defaults<br> *Vision target data <br> Low Priority -- cluster containing:<br> *Debug data #Analog I/O     ...)
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
High Priority -- cluster unchanged from FIRST&nbsp;defaults<br>
High Priority -- cluster unchanged from FIRST&nbsp;defaults<br>  


*Vision target data
*Vision target data
Line 5: Line 5:
<br>  
<br>  


Low Priority -- cluster containing:<br>
Low Priority -- cluster containing:<br>  


*Debug data
*Debug data: cluster containing:


#Analog I/O&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster of 8 floats<br>  
#Analog I/O&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster of 8 floats<br>  
#Cluster containing:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Relays&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8 bit int for each one forward,&nbsp; 8 bit int for each one in reverse<br>
#Cluster containing:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Relays&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 8-bit int showing which relays are forward,&nbsp; 1 8-bit int showing which are reverse<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Digital I/O&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 16 bit int for determining which are inputs and outputs, 16 bit int for on or off<br>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Digital I/O&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 16-bit int for determining which are inputs and outputs, 1 16-bit int for on or off<br>  


&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PWM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster of 10 int<br>  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PWM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster of 10 ints<br>  


<br>  
*Driver Station Data: cluster containing:<br>
 
#Digital Inputs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 8-bit int showing which are on or off<br>
#Digital Outputs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 8-bit int showing which are on or off<br>
#Analog Inputs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cluster of 4 ints<br>
 
*Joystick Data: cluster containing:<br>
 
#Left Joystick data: cluster containing:
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3 floats -- Y axis, X axis, Throttle (in that order)
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 16-bit int (last 12 bits) -- buttons pressed
 
&nbsp;&nbsp;&nbsp;&nbsp; 2.&nbsp; Right Joystick data: same as left joystick data, but for right joystick<br>
 
*Mode&nbsp;&nbsp; BYTE<br>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ 0 -- Teleop Enabled<br>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 -- Teleop Disabled<br>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 -- Autonomous Enabled<br>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3 -- Autonomous Disabled<br>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4 -- E-STOP ]<br>
 
*Alliance&nbsp;&nbsp; BYTE
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ 0 -- Red
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 -- Blue
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 -- Invalid ]
 
*Autonomous Mode&nbsp;&nbsp; BYTE


*Mode&nbsp;&nbsp; BYTE
&nbsp;&nbsp;&nbsp;&nbsp; [ Numbers TBA]<br>  
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 -- Teleop Enabled
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 -- Teleop Disabled
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 -- Autonomous Enabled
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3 -- Autonomous Disabled
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4 -- E-STOP
*Alliance&nbsp;&nbsp; BYTE
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 -- Red
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 -- Blue
*Autonomous Mode&nbsp;&nbsp; BYTE
*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Numbers TBA<br>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
*Autonomous Delay in seconds&nbsp; FLOAT

Latest revision as of 15:47, 14 November 2010

High Priority -- cluster unchanged from FIRST defaults

  • Vision target data


Low Priority -- cluster containing:

  • Debug data: cluster containing:
  1. Analog I/O       Cluster of 8 floats
  2. Cluster containing:
           Relays           1 8-bit int showing which relays are forward,  1 8-bit int showing which are reverse

                Digital I/O       1 16-bit int for determining which are inputs and outputs, 1 16-bit int for on or off

                PWM             Cluster of 10 ints

  • Driver Station Data: cluster containing:
  1. Digital Inputs          1 8-bit int showing which are on or off
  2. Digital Outputs       1 8-bit int showing which are on or off
  3. Analog Inputs:        Cluster of 4 ints
  • Joystick Data: cluster containing:
  1. Left Joystick data: cluster containing:

                3 floats -- Y axis, X axis, Throttle (in that order)

                1 16-bit int (last 12 bits) -- buttons pressed

     2.  Right Joystick data: same as left joystick data, but for right joystick

  • Mode   BYTE

      [ 0 -- Teleop Enabled

      1 -- Teleop Disabled

      2 -- Autonomous Enabled

      3 -- Autonomous Disabled

      4 -- E-STOP ]

  • Alliance   BYTE

      [ 0 -- Red

      1 -- Blue

      2 -- Invalid ]

  • Autonomous Mode   BYTE

     [ Numbers TBA]

  • Autonomous Delay in seconds  FLOAT