|| $bytes[4] & 0x01
|| $bytes[5] & 0x01;
- return $msg; # FIXME - to be implemented
+ my $car = $bytes[0];
+ my $round = 256*$bytes[1] + $bytes[2]
+ + ($bytes[3] & 2 ? 256 : 0)
+ + ($bytes[3] & 1 ? 1 : 0);
+ my $time = 256*$bytes[4] + $bytes[5]
+ + ($bytes[3] & 8 ? 256 : 0)
+ + ($bytes[3] & 4 ? 1 : 0);
+ $time *= 0.01024;
+
+ $self->track->car($car)->set_lap($round);
+ $self->track->car($car)->set_laptime($time);
+
+ return $msg;
}