Renamed decode class from ptototype directory. Updated decode excel file.

This commit is contained in:
ElVit
2025-06-10 20:09:26 +02:00
parent f9f29a635d
commit 9c50cc236d
3 changed files with 9 additions and 9 deletions
@@ -1,4 +1,4 @@
#include "decode.h"
#include "decode_proto.h"
int getBit1(uint8_t input)
{
@@ -179,7 +179,7 @@ float getPumpFlow(uint8_t input1, uint8_t input2)
int PumpFlow2 = (int)input2;
float PumpFlow1 = (((float)input1 - 1) / 256);
float PumpFlow = PumpFlow2 + PumpFlow1;
return PumpFlow;
}
@@ -189,7 +189,7 @@ float getFractional(uint8_t input, uint8_t shift)
float result;
int fractional = (int)((input >> shift) & 0b111) - 1;
result = fractional * 0.25;
return result;
}
@@ -5,11 +5,11 @@
#include <string>
#include <vector>
#define NUMBER_OF_MODELS 51
#define NUMBER_OF_TOPICS 127
#define NUMBER_OF_TOPICS_EXTRA 6
#define NUMBER_OF_OPT_TOPICS 7
#define MAX_TOPIC_LEN 42
#define NUMBER_OF_MODELS_PROTO 51
#define NUMBER_OF_TOPICS_PROTO 127
#define NUMBER_OF_TOPICS_EXTRA_PROTO 6
#define NUMBER_OF_OPT_TOPICS_PROTO 7
#define MAX_TOPIC_LEN_PROTO 42
int getBit1(uint8_t input);
int getBit1and2(uint8_t input);
@@ -117,7 +117,7 @@ static const char *ModelNames[] =
};
// stores the bytes #129 to #138 of known models in the same order as the ModelNames above
static const uint8_t KnownModels[NUMBER_OF_MODELS][10] =
static const uint8_t KnownModels[NUMBER_OF_MODELS_PROTO][10] =
{
0xE2, 0xCF, 0x0B, 0x13, 0x33, 0x32, 0xD1, 0x0C, 0x16, 0x33, //0
0xE2, 0xCF, 0x0B, 0x14, 0x33, 0x42, 0xD1, 0x0B, 0x17, 0x33, //1
Binary file not shown.