Esempio n. 1
0
QString RDimAngularData::getAutoLabel() const {
    QString ret;

    ret = formatAngleLabel(getMeasuredValue());

    return ret;
}
Esempio n. 2
0
void
SensorCard::getTotalData(CumulativeData& totalData)
{
	getMeasuredValue(
		FRONIUS_CMD_GET_MINIMUM_TEMPERATURE_CH1_TOTAL,
		totalData.temperatureChan1Minimum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_TEMPERATURE_CH1_TOTAL,
		totalData.temperatureChan1Maximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MINIMUM_TEMPERATURE_CH2_TOTAL,
		totalData.temperatureChan2Minimum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_TEMPERATURE_CH2_TOTAL,
		totalData.temperatureChan2Maximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_IRRADIANCE_TOTAL,
		totalData.irradianceMaximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_DIGITAL_CH1_TOTAL,
		totalData.digitalChan1ValueMaximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_DIGITAL_CH2_TOTAL,
		totalData.digitalChan2ValueMaximum);
}
Esempio n. 3
0
void
SensorCard::getYearData(CumulativeData& yearData)
{
	assert(supportsYearData());

	getMeasuredValue(
		FRONIUS_CMD_GET_MINIMUM_TEMPERATURE_CH1_YEAR,
		yearData.temperatureChan1Minimum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_TEMPERATURE_CH1_YEAR,
		yearData.temperatureChan1Maximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MINIMUM_TEMPERATURE_CH2_YEAR,
		yearData.temperatureChan2Minimum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_TEMPERATURE_CH2_YEAR,
		yearData.temperatureChan2Maximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_IRRADIANCE_YEAR,
		yearData.irradianceMaximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_DIGITAL_CH1_YEAR,
		yearData.digitalChan1ValueMaximum);
	getMeasuredValue(
		FRONIUS_CMD_GET_MAXIMUM_DIGITAL_CH2_YEAR,
		yearData.digitalChan2ValueMaximum);
}
Esempio n. 4
0
void
SensorCard::getNowData(NowData& nowData)
{
	getMeasuredValue(
		FRONIUS_CMD_GET_TEMPERATURE_CH1_NOW,
		nowData.temperatureChan1);
	getMeasuredValue(
		FRONIUS_CMD_GET_TEMPERATURE_CH2_NOW,
		nowData.temperatureChan2);
	getMeasuredValue(
		FRONIUS_CMD_GET_IRRADIANCE_NOW,
		nowData.irradiance);
	getMeasuredValue(
		FRONIUS_CMD_GET_DIGITAL_CH1_NOW,
		nowData.digitalChan1Value);
	getMeasuredValue(
		FRONIUS_CMD_GET_DIGITAL_CH2_NOW,
		nowData.digitalChan2Value);
}
Esempio n. 5
0
QString RDimAlignedData::getAutoLabel() const {
    double distance = getMeasuredValue();
    distance *= linearFactor;
    return formatLabel(distance);
}
Esempio n. 6
0
QString RDimOrdinateData::getAutoLabel() const {
    double distance = getMeasuredValue();
    return formatLabel(distance);
}