diff --git a/Auxiliary_utils/Hydreon/Hydreon_RG11.creator.user b/Auxiliary_utils/Hydreon/Hydreon_RG11.creator.user index fa7bb48..2bf5ab4 100644 --- a/Auxiliary_utils/Hydreon/Hydreon_RG11.creator.user +++ b/Auxiliary_utils/Hydreon/Hydreon_RG11.creator.user @@ -1,10 +1,10 @@ - + EnvironmentId - {7bd84e39-ca37-46d3-be9d-99ebea85bc0d} + {cf63021e-ef53-49b0-b03b-2f2570cdf3b6} ProjectExplorer.Project.ActiveTarget @@ -37,45 +37,60 @@ true true 1 - true + false + false false - 0 + 1 true true 0 8 true - 1 + false + 2 true - false + true true - false + *.md, *.MD, Makefile + true + true ProjectExplorer.Project.PluginSettings - + + + true + Builtin.BuildSystem + + true + true + Builtin.DefaultTidyAndClazy + 4 + + + + true + + ProjectExplorer.Project.Target.0 + Desktop Desktop Desktop - {65a14f9e-e008-4c1b-89df-4eaa4774b6e3} + {91347f2c-5221-46a7-80b1-0a054ca02f79} 0 0 0 - /Big/1 + /home/eddy/Docs/SAO/10micron/Hydreon/C-src all - false - - - false true GenericProjectManager.GenericMakeStep @@ -89,10 +104,6 @@ clean - true - - - false true GenericProjectManager.GenericMakeStep @@ -103,6 +114,8 @@ 2 false + + false По умолчанию GenericProjectManager.GenericBuildConfiguration @@ -121,23 +134,16 @@ ProjectExplorer.DefaultDeployConfiguration 1 - + 2 - ProjectExplorer.CustomExecutableRunConfiguration - - false - false true - false false true - - 1 diff --git a/Auxiliary_utils/Hydreon/Makefile b/Auxiliary_utils/Hydreon/Makefile index dbffd5b..6f1a785 100644 --- a/Auxiliary_utils/Hydreon/Makefile +++ b/Auxiliary_utils/Hydreon/Makefile @@ -18,6 +18,10 @@ else TARGET := RELEASE endif +ifeq ($(TARGET), DEBUG) + .DEFAULT_GOAL := debug +endif + release: $(PROGRAM) debug: CFLAGS += -DEBUG -Werror diff --git a/Auxiliary_utils/Hydreon/hydreon.h b/Auxiliary_utils/Hydreon/hydreon.h index 0c6e785..43bf16e 100644 --- a/Auxiliary_utils/Hydreon/hydreon.h +++ b/Auxiliary_utils/Hydreon/hydreon.h @@ -26,13 +26,21 @@ #define SREGNUM 16 // RGBits values: +// raining too much (???) #define PkOverThr (1<<0) +// is raining (???) #define Raining (1<<1) +// outern relay is on (???) #define Out1On (1<<2) +// heater (???) #define HtrOn (1<<3) +// ambient light @0 -> night #define IsDark (1<<4) +// ??? #define Cndnstn (1<<5) +// ??? #define Freeze (1<<6) +// ??? #define Storm (1<<7) // minimal packet length (without slow registers) @@ -42,15 +50,15 @@ #define BUFLEN (32) typedef struct{ - uint8_t PeakRS; - uint8_t SPeakRS; - uint8_t RainAD8; - uint8_t LRA; - uint8_t TransRat; - uint8_t AmbLNoise; - uint8_t RGBits; - uint8_t SlowRegIngex; - uint8_t SlowRegValue; + uint8_t PeakRS; // water intensity (255 - continuous) 0..5 + uint8_t SPeakRS; // 0..5 + uint8_t RainAD8; // power of rain (???) 64..192 + uint8_t LRA; // counter of rain activity (???) + uint8_t TransRat; // amount of measurements per second (???) 60..170 + uint8_t AmbLNoise; // ambient noise RMS (???) + uint8_t RGBits; // flags + uint8_t SlowRegIngex; // slow register index + uint8_t SlowRegValue; // slow register value } rg11; typedef struct{