Timestamp information for CAN frames

pull/4/head
Paul Hollinsky 2019-01-03 17:08:47 -05:00
parent 7e9fbc4959
commit c94ace87f9
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ std::shared_ptr<CANMessage> HardwareCANPacket::DecodeToMessage(const std::vector
msg->arbid = data->header.SID;
}
// This timestamp is raw off the device (in timestampMultiplier increments)
// Decoder will fix as it has information about the timestampMultiplier increments
msg->timestamp = data->timestamp.TS;
// DLC
uint8_t length = data->dlc.DLC;
msg->dlcOnWire = length; // This will hold the real DLC on wire 0x0 - 0xF