VCSCompound is a static local variable (which means it's value is preserved across invocations of the function), which represents which of the compound messages to send. You can see that the VCS (Video Capture System) sends all of this data to the CAN ID 0x1F, but the data contained in the message depends on the value of the first byte (offset 0), which is the value of VCSCompound. Notice after the message is sent that VCSCompound is set to the next message to send.
You can learn about CAN Compound messages from the "What is CAN?" webinar found here:
https://www.motec.com.au/webinars-view/ ... chive/#CANThe Transmit VCS is a perfect sample for your dash board -- in fact you probably want to send a lot of the same channels. To make your own, just select "VCS Transmit" in M1 Build's Ojbect view, copy (Control-C), and paste (Control-V), then rename the new "Transmit VCS 1" to be "Transmit MyDash" (or whatever) -- then edit the function, starting with CAN ID (you don't want to send to 0x01F, but some other non-conflicting CAN ID -- heck maybe your project even has that as a parameter that can be set in M1 Tune).
That should get you started.