import { Scaler } from '@ircam/sc-signal';

export function temperatureRawToCelsius(raw) {
  const celsius = (raw / 8) + 21;
  return celsius;
}

export function analogInputRawToNormalised(raw) {
  const normalised = raw / 4095;
  return normalised;
}

export function batteryRawToVolts(raw) {
  const volts = (raw / 877);
  return volts;
}
