src/utilities.js
function convertGanglionArrayToBuffer (arr, data) {
  for (let i = 0; i < k.OBCINumberOfChannelsGanglion; i++) {
    data.writeInt16BE(arr[i] >> 8, (i * 3));
    data.writeInt8(arr[i] & 255, (i * 3) + 2);
  }
}
function convertGanglionArrayToBuffer (arr, data) {
  for (let i = 0; i < k.OBCINumberOfChannelsGanglion; i++) {
    data.writeInt16BE(arr[i] >> 8, (i * 3));
    data.writeInt8(arr[i] & 255, (i * 3) + 2);
  }
}
function convertGanglionArrayToBuffer ( arr , data ) { for ( let i = 0 ; i < k . OBCINumberOfChannelsGanglion ; i ++ ) { data . writeInt16BE ( arr [ i ] >> 8 , ( i * 3 ) ) ; data . writeInt8 ( arr [ i ] & 255 , ( i * 3 ) + 2 ) ; } }
Used to convert a ganglions decompressed back into a buffer
@param arr {Array} - An array of four numbers
@param data {Buffer} - A buffer to store into
Used to convert a ganglions decompressed back into a buffer