Index: sources/model/dg/data/MDGLoadCellReadingsData.h =================================================================== diff -u -r3aab84456cfbdc4c4f495975ba9b8968eb844309 -r4d969a04e6d80a6d2f6b756a4b87aecd6356e6a9 --- sources/model/dg/data/MDGLoadCellReadingsData.h (.../MDGLoadCellReadingsData.h) (revision 3aab84456cfbdc4c4f495975ba9b8968eb844309) +++ sources/model/dg/data/MDGLoadCellReadingsData.h (.../MDGLoadCellReadingsData.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 MDGLoadCellReadingsData.h - * \date 6/10/2020 - * \author Behrouz NematiPour + * \file MDGLoadCellReadingsData.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 MDGLoadCellReadings class + * \details The DG load cell readings data model + * + * | MSG | CAN ID | Box | Type | Ack | Src | Dst | Description | + * |:----:|:------:|:---:|:------:|:---:|:---:|:---:|:-----------: | + * |0x0C00| 0x080 | 8 | 10 Hz | N | DG | All | DG Load Cell Readings Data | + * + * | Payload || + * | || + * | #1:(F32) | \ref Data::mReservoir1Prim | + * | #2:(F32) | \ref Data::mReservoir1Bkup | + * | #3:(F32) | \ref Data::mReservoir2Prim | + * | #4:(F32) | \ref Data::mReservoir2Bkup | + * + * \sa Data + * + *

Logging info

+ * | || + * | || + * | typeText | Datum | + * | unitText | DG | + * | infoText | LoadCell | + * + */ class MDGLoadCellReadings : public MAbstract { // friends friend class ::tst_models; - // Load Cell Readings Data Rs1 Prim. (F32) Rs1 Bkup (F32) Rs2 Prim. (F32) Rs2 Bkup (F32) QVariantList parameters() const override; struct { @@ -47,18 +72,17 @@ QString infoText () const override { return QString("LoadCell"); } struct Data { - float mReservoir1Prim = 0; /*!< Reservoir1 Prim value of type float extracted out */ - float mReservoir1Bkup = 0; /*!< Reservoir1 Bkup value of type float extracted out */ - float mReservoir2Prim = 0; /*!< Reservoir2 Prim value of type float extracted out */ - float mReservoir2Bkup = 0; /*!< Reservoir2 Bkup value of type float extracted out */ + float mReservoir1Prim = 0; ///< Reservoir1 Primary + float mReservoir1Bkup = 0; ///< Reservoir1 Back up + float mReservoir2Prim = 0; ///< Reservoir2 Primary + float mReservoir2Bkup = 0; ///< Reservoir2 Back up }; MDGLoadCellReadings () {} bool fromByteArray (const QByteArray &vByteArray , int *vIndex = nullptr) override; Data data ( ) const ; }; - } typedef Model::MDGLoadCellReadings::Data DGLoadCellReadingsData;