Exemplo n.º 1
0
static void reportLidParameters(void)
{
  print_P(PSTR("HMLD" CSV_DELIMITER));
  SerialX.print(pid.LidOpenOffset, DEC);
  Serial_csv();
  SerialX.print(pid.getLidOpenDuration(), DEC);
  Serial_nl();
}
Exemplo n.º 2
0
static void outputCsv(void)
{
#ifdef HEATERMETER_SERIAL
  print_P(PSTR("HMSU" CSV_DELIMITER));
  pid.status();
  Serial_nl();
#endif /* HEATERMETER_SERIAL */
}
Exemplo n.º 3
0
static void reportProbeOffsets(void)
{
  print_P(PSTR("HMPO"));
  for (unsigned char i=0; i<TEMP_COUNT; ++i)
  {
    Serial_csv();
    SerialX.print(pid.Probes[i]->Offset, DEC);
  }
  Serial_nl();
}
Exemplo n.º 4
0
static void reportPidParams(void)
{
  print_P(PSTR("HMPD"));
  for (unsigned char i=0; i<4; ++i)
  {
    Serial_csv();
    //printSciFloat(pid.Pid[i]);
    SerialX.print(pid.Pid[i], 8);
  }
  Serial_nl();
}
Exemplo n.º 5
0
static void reportProbeNames(void)
{
  print_P(PSTR("HMPN"));
  for (unsigned char i=0; i<TEMP_COUNT; ++i)
  {
    loadProbeName(i);
    Serial_csv();
    SerialX.print(editString);
  }
  Serial_nl();
}
Exemplo n.º 6
0
static void reportRfMap(void)
{
  print_P(PSTR("HMRM"));
  for (unsigned char i=0; i<TEMP_COUNT; ++i)
  {
    Serial_csv();
    if (pid.Probes[i]->getProbeType() == PROBETYPE_RF12)
      SerialX.print(rfMap[i], DEC);
  }
  Serial_nl();
}
Exemplo n.º 7
0
static void outputAdcStatus(void)
{
#if defined(HEATERMETER_SERIAL)
  print_P(PSTR("HMAR"));
  for (unsigned char i=0; i<NUM_ANALOG_INPUTS; ++i)
  {
    Serial_csv();
    SerialX.print(analogReadRange(i), DEC);
  }
  Serial_nl();
#endif
}
Exemplo n.º 8
0
void reportLcdParameters(void)
{
  print_P(PSTR("HMLB" CSV_DELIMITER));
  SerialX.print(g_LcdBacklight, DEC);
  Serial_csv();
  SerialX.print(g_HomeDisplayMode, DEC);
  for (unsigned char i=0; i<LED_COUNT; ++i)
  {
    Serial_csv();
    SerialX.print(ledmanager.getAssignment(i), DEC);
  }
  Serial_nl();
}
Exemplo n.º 9
0
static void reportFanParams(void)
{
  print_P(PSTR("HMFN" CSV_DELIMITER));
  SerialX.print(pid.getMinFanSpeed(), DEC);
  Serial_csv();
  SerialX.print(pid.getMaxFanSpeed(), DEC);
  Serial_csv();
  SerialX.print(pid.getMinServoPos(), DEC);
  Serial_csv();
  SerialX.print(pid.getMaxServoPos(), DEC);
  Serial_csv();
  SerialX.print(pid.getOutputFlags(), DEC);
  Serial_nl();
}
Exemplo n.º 10
0
static void reportProbeCoeff(unsigned char probeIdx)
{
  print_P(PSTR("HMPC" CSV_DELIMITER));
  SerialX.print(probeIdx, DEC);
  Serial_csv();
  
  TempProbe *p = pid.Probes[probeIdx];
  for (unsigned char i=0; i<STEINHART_COUNT; ++i)
  {
    printSciFloat(p->Steinhart[i]);
    Serial_csv();
  }
  SerialX.print(p->getProbeType(), DEC);
  Serial_nl();
}
Exemplo n.º 11
0
void GrillPid::pidStatus(void) const
{
  TempProbe const* const pit = Probes[TEMP_PIT];
  if (pit->hasTemperature())
  {
    print_P(PSTR("HMPS"CSV_DELIMITER));
    for (unsigned char i=PIDB; i<=PIDD; ++i)
    {
      SerialX.print(_pidCurrent[i], 2);
      Serial_csv();
    }

    SerialX.print(pit->Temperature - pit->TemperatureAvg, 2);
    Serial_nl();
  }
}
Exemplo n.º 12
0
static void reportAlarmLimits(void)
{
#ifdef HEATERMETER_SERIAL
  print_P(PSTR("HMAL"));
  for (unsigned char i=0; i<TEMP_COUNT; ++i)
  {
    ProbeAlarm &a = pid.Probes[i]->Alarms;
    Serial_csv();
    SerialX.print(a.getLow(), DEC);
    if (a.getLowRinging()) Serial_char('L');
    Serial_csv();
    SerialX.print(a.getHigh(), DEC);
    if (a.getHighRinging()) Serial_char('H');
  }
  Serial_nl();
#endif
}
Exemplo n.º 13
0
static state_t menuResetConfig(button_t button)
{
  if (button == BUTTON_ENTER)
  {
    lcdprint_P(PSTR("Reset config?"), true);
    editInt = 0;
  }
  else if (button == BUTTON_LEAVE)
  {
    if (editInt != 0)
    {
      eepromLoadConfig(1);
      print_P(PSTR("HMRC,USER")); Serial_nl();
    }
  }
  menuBooleanEdit(button, NULL);
  return ST_AUTO;
}
Exemplo n.º 14
0
static void reportFanParams(void)
{
  print_P(PSTR("HMFN" CSV_DELIMITER));
  SerialX.print(pid.getFanMinSpeed(), DEC);
  Serial_csv();
  SerialX.print(pid.getFanMaxSpeed(), DEC);
  Serial_csv();
  SerialX.print(pid.getServoMinPos(), DEC);
  Serial_csv();
  SerialX.print(pid.getServoMaxPos(), DEC);
  Serial_csv();
  SerialX.print(pid.getOutputFlags(), DEC);
  Serial_csv();
  SerialX.print(pid.getFanMaxStartupSpeed(), DEC);
  Serial_csv();
  SerialX.print(pid.getFanActiveFloor(), DEC);
  Serial_csv();
  SerialX.print(pid.getServoActiveCeil(), DEC);
  Serial_nl();
}
Exemplo n.º 15
0
static void reportVersion(void)
{
  print_P(PSTR("UCID" CSV_DELIMITER "HeaterMeter" CSV_DELIMITER HM_VERSION));
  SerialX.print(HM_BOARD_REV);
  Serial_nl();
}