Module pyinsim :: Class IS_MCI
[hide private]
[frames] | no frames]

Class IS_MCI

source code

Multi Car Info - if more than 8 in race then more than one of these is sent

Instance Methods [hide private]
 
__init__(self, ReqI=0, NumC=0)
Initialise the packet.
source code
string
pack(self)
Pack the packet values into a binary formatted string.
source code
 
unpack(self, data)
Unpack the packet data from a binary formatted string.
source code
Instance Variables [hide private]
list CompCars
A list of CompCar packets.
Method Details [hide private]

__init__(self, ReqI=0, NumC=0)
(Constructor)

source code 

Initialise the packet.

Parameters:
  • ReqI - 0 unless this is a reply to an TINY_MCI request
  • NumC - number of valid CompCar structs in this packet

pack(self)

source code 

Pack the packet values into a binary formatted string.

Returns: string
A binary formatted string.

unpack(self, data)

source code 

Unpack the packet data from a binary formatted string.

Parameters:
  • data (string) - The packet data as a binary formatted string.