src/utilities.js
function processUncompressedData (o) {
  // Resets the packet counter back to zero
  o.lastSampleNumber = k.OBCIGanglionByteIdUncompressed;  // used to find dropped packets

  for (let i = 0; i < 4; i++) {
    o.decompressedSamples[0][i] = utilitiesModule.interpret24bitAsInt32(o.rawDataPacket.slice(1 + (i * 3), 1 + (i * 3) + 3));  // seed the decompressor
  }

  return [buildSample(0, o.decompressedSamples[0], o.sendCounts)];
}
function processUncompressedData (o) {
  // Resets the packet counter back to zero
  o.lastSampleNumber = k.OBCIGanglionByteIdUncompressed;  // used to find dropped packets

  for (let i = 0; i < 4; i++) {
    o.decompressedSamples[0][i] = utilitiesModule.interpret24bitAsInt32(o.rawDataPacket.slice(1 + (i * 3), 1 + (i * 3) + 3));  // seed the decompressor
  }

  return [buildSample(0, o.decompressedSamples[0], o.sendCounts)];
}
function processUncompressedData ( o ) { // Resets the packet counter back to zero o . lastSampleNumber = k . OBCIGanglionByteIdUncompressed ; // used to find dropped packets for ( let i = 0 ; i < 4 ; i ++ ) { o . decompressedSamples [ 0 ] [ i ] = utilitiesModule . interpret24bitAsInt32 ( o . rawDataPacket . slice ( 1 + ( i * 3 ) , 1 + ( i * 3 ) + 3 ) ) ; // seed the decompressor } return [ buildSample ( 0 , o . decompressedSamples [ 0 ] , o . sendCounts ) ] ; }
Process an uncompressed packet of data.
@param o {RawDataToSample} - Used to hold data and configuration settings
@private
Process an uncompressed packet of data .