Standard CAN broadcast: Difference between revisions

Line 31: Line 31:
{| class="wikitable"
{| class="wikitable"
|-
|-
! CAN ID !! What !! Offset !! Length !! Formula !! Units
! CAN ID !! What !! Offset !! Length !! Formula !! Units !! Notes
|-
|-
| 0xA200 (41472) || Position Overall || 0 || 2 || * 1 + 0 ||  
| 0xA200 (41472) || Last Timing & Scoring lap time || 0 || 2 || * .001 + 0.0 || min. || Last lap time as reported by timing and scoring system
|-
|-
| 0xA200 (41472) || Position in Class || 2 || 2 || * 1 + 0 ||
| 0xA200 (41472) || Position Overall || 2 || 1 || * 1 + 0 || ||
|-
|-
| 0xA200 (41472) || Competitor Number Ahead || 4 || 2 || * 1 + 0 ||
| 0xA200 (41472) || Position in Class || 3 || 1 || * 1 + 0 || ||
|-
|-
| 0xA200 (41472) || Competitor Number Behind || 6 || 2 || * 1 + 0 ||
| 0xA200 (41472) || Competitor Number Ahead || 4 || 2 || * 1 + 0 || ||
|-
|-
| 0xA201 (41473) || Gap to Competitor Ahead || 0 || 2 || * 0.1 + 0.0 || sec.
| 0xA200 (41472) || Competitor Number Behind || 6 || 2 || * 1 + 0 || ||
|-
|-
| 0xA201 (41473) || Gap to Competitor Behind || 2 || 2 || * 0.1 + 0.0 || sec.
| 0xA201 (41473) || Gap to Competitor Ahead || 0 || 2 || * 0.1 + 0.0 || sec. || Value will be zero if gap is 1 lap or greater
|-
|-
| 0xA202 (41473) || Laps to Competitor Ahead || 4|| 1 || * 1 + 0 ||  
| 0xA201 (41473) || Gap to Competitor Behind || 2 || 2 || * 0.1 + 0.0 || sec. || Value will be zero if gap is 1 lap or greater
|-
|-
| 0xA202 (41473) || Laps to Competitor Behind || 5 || 1 || * 1 + 0 ||  
| 0xA201 (41473) || Laps to Competitor Ahead || 4|| 1 || * 1 + 0 || ||
|-
|-
| 0xA202 (41473) || Full Course Flag state || 6|| 1 || * 1 + 0 || 0=None; 1=Green; 2=Yellow; 3=Red; 4=Finish
| 0xA201 (41473) || Laps to Competitor Behind || 5 || 1 || * 1 + 0 || ||
|-
|-
| 0xA202 (41473) || Competitor Flag State || 7 || 1 || * 1 + 0 || 0=no flag; 1=Black Flag
| 0xA201 (41473) || Full Course Flag state || 6|| 1 || * 1 + 0 || || 0=None; 1=Green; 2=Yellow; 3=Red; 4=Finish
|-
| 0xA201 (41473) || Competitor Flag State || 7 || 1 || * 1 + 0 || || 0=no flag; 1=Black Flag
|}
|}

Revision as of 23:25, 7 September 2020

Standard CAN broadcast for RaceCapture and PodiumConnect

Alert Messages

This describes the CAN format for Pit to Car alert messages.

Messages are broadcasted in ASCII character format, with a maximum of 16 characters across two CAN messages.

Message priority is 0 - 2, with 0 = normal priority used for pit-to car alerts, and 1 - 2 reserved for future use.

Base address: 0xA100 (41216)

Address for message is calculated by the base address offset by priority:

  • Priority 0 address: 0xA100 (41216) / 0xA101 (41217)
  • Priority 1 address: 0xA102 (41218) / 0xA103 (41219)
  • Priority 2 address: 0xA104 (41220) / 0xA105 (41221)
CAN ID Byte 0 1 2 3 4 5 6 7
Base Address message character 0 1 2 3 4 5 6 7
Base Address + 1 message character 8 9 10 11 12 13 14 15

Timing and Scoring integration

CAN broadcast mapping for timing and scoring integration

Base address: 0xA200 (41472)

CAN ID What Offset Length Formula Units Notes
0xA200 (41472) Last Timing & Scoring lap time 0 2 * .001 + 0.0 min. Last lap time as reported by timing and scoring system
0xA200 (41472) Position Overall 2 1 * 1 + 0
0xA200 (41472) Position in Class 3 1 * 1 + 0
0xA200 (41472) Competitor Number Ahead 4 2 * 1 + 0
0xA200 (41472) Competitor Number Behind 6 2 * 1 + 0
0xA201 (41473) Gap to Competitor Ahead 0 2 * 0.1 + 0.0 sec. Value will be zero if gap is 1 lap or greater
0xA201 (41473) Gap to Competitor Behind 2 2 * 0.1 + 0.0 sec. Value will be zero if gap is 1 lap or greater
0xA201 (41473) Laps to Competitor Ahead 4 1 * 1 + 0
0xA201 (41473) Laps to Competitor Behind 5 1 * 1 + 0
0xA201 (41473) Full Course Flag state 6 1 * 1 + 0 0=None; 1=Green; 2=Yellow; 3=Red; 4=Finish
0xA201 (41473) Competitor Flag State 7 1 * 1 + 0 0=no flag; 1=Black Flag