Index: sources/model/dg/data/MDGPressuresData.h =================================================================== diff -u -r3aab84456cfbdc4c4f495975ba9b8968eb844309 -r4d969a04e6d80a6d2f6b756a4b87aecd6356e6a9 --- sources/model/dg/data/MDGPressuresData.h (.../MDGPressuresData.h) (revision 3aab84456cfbdc4c4f495975ba9b8968eb844309) +++ sources/model/dg/data/MDGPressuresData.h (.../MDGPressuresData.h) (revision 4d969a04e6d80a6d2f6b756a4b87aecd6356e6a9) @@ -2,13 +2,14 @@ * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * \copyright - * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, - * IN PART OR IN WHOLE, - * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. + * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN + * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file MDGPressuresData.h - * \date 7/2/2020 - * \author Behrouz NematiPour + * \file MDGPressuresData.h + * \author (last) Behrouz NemaiPour + * \date (last) 17-Jul-2020 + * \author (original) Behrouz NemaiPour + * \date (original) 02-Jul-2020 * */ #pragma once @@ -25,12 +26,36 @@ namespace Model { +/*! + * \brief The MDGPressures class + * \details The DG pressures data model + * + * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | + * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------: | + * |0x2000| 0x080 | 8 | 1 Hz | N | DG | All | DG Pressures Data | + * + * | Payload || + * | || + * | #1:(F32) | \ref Data::mROInletPSI | + * | #2:(F32) | \ref Data::mROOutletPSI | + * | #3:(F32) | \ref Data::mDrainInletPSI | + * | #4:(F32) | \ref Data::mDrainOutletPSI | + * + * \sa Data + * + *

Logging info

+ * | || + * | || + * | typeText | Datum | + * | unitText | DG | + * | infoText | Pressures | + * + */ class MDGPressures : public MAbstract { // friends friend class ::tst_models; - // DG Pressures Data (F32) RO inlet PSI (F32) RO outlet PSI (F32) Drain inlet PSI (F32) Drain outlet PSI QVariantList parameters() const override; struct { @@ -47,18 +72,17 @@ QString infoText () const override { return QString("Pressures"); } struct Data { - float mROInletPSI = 0; /*!< Reservoir1 Prim value of type float extracted out */ - float mROOutletPSI = 0; /*!< Reservoir1 Bkup value of type float extracted out */ - float mDrainInletPSI = 0; /*!< Reservoir2 Prim value of type float extracted out */ - float mDrainOutletPSI = 0; /*!< Reservoir2 Bkup value of type float extracted out */ + float mROInletPSI = 0; ///< RO inlet PSI + float mROOutletPSI = 0; ///< RO outlet PSI + float mDrainInletPSI = 0; ///< Drain inlet PSI + float mDrainOutletPSI = 0; ///< Drain outlet PSI }; MDGPressures () {} bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; - } typedef Model::MDGPressures::Data DGPressuresData;