Utilities¶
-
olimex.utils.
calculate_values_from_packet_data
(data)¶ Return a list of the 6 channel values parsed from the packet data.
Parameters: data – Return type: list - Data sent from the Olimex shield is in the following form:
uint16_t data[6];
Each
uint16_t
holds a 10-bit sample (= 0 - 1023) in big endian (Motorola) format.However the data argument, passed in a call to this function, contains a list of length 12; each item in the list is a
bytes()
of length 1.