Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving sum feature #139

Merged
merged 16 commits into from
Jun 28, 2022
Merged

Conversation

hpsaturn
Copy link
Member

@hpsaturn hpsaturn commented Jun 8, 2022

Description

  • Please enter a description :D
  • tested only on compiling time, 3 of 4 tests ok.

@hpsaturn hpsaturn requested a review from roberbike June 8, 2022 09:45
@hpsaturn
Copy link
Member Author

hpsaturn commented Jun 8, 2022

Hi guys, I tried to organize and do the pull request that did @iw2lsi, but I don't know maybe I did some mistake. Please @iw2lsi review the PR here in the tab "files changed". And please @roberbike try to check it, because I can't help you because I haven't the hardware. I did the PR and run the tests on the root and pass 3 of 4 tests, ESP8266 fails, but you guys should be know more.

@iw2lsi
Copy link
Contributor

iw2lsi commented Jun 8, 2022

it seems fine to me... I have some doubts regarding src/Sensors.hpp and in particular on:

lines 132:

X(CPM, "CPM", "CPM")       \
X(RADIATION, "uSv/h", "Radiation") \
X(UCOUNT, "COUNT", "UCOUNT")

line 157:
X(SCAJOE, "CAJOE", 4)
X(SCOUNT, "SCOUNT", 3)

line 169:
SENSOR_ENV,
SENSOR_RAD // CAJOE_GEIGER
};

lately I'll like to change:

cajoe_fms = new MovingSum<uint16_t, uint32_t>(GEIGER_BUFSIZE);

to:

cajoe_fms = new MovingSum<uint8_t, uint16_t>(GEIGER_BUFSIZE);

and check the related variable everywhere...

BTW: you do not neet a sensor... you can just use a switch or a wire between pin 26 and GND/+3v3... you'll get some bounces but that's not a problem...

The changes in the iw2lsi/canairio_firmware@dd80980 are really few lines regarding HASS publishing.

@hpsaturn
Copy link
Member Author

hpsaturn commented Jun 8, 2022

@iw2lsi you can push new changes to this branch moving_sum_feature in your fork, and with that the PR here will update.

Copy link
Member

@roberbike roberbike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on esp32 with tft.
uSvh only show 0000 values. It need 2 decimals almost. By serial the data is ok.
Esp 8266 is not compatible with hardware timer: hw_timer_t* geiger_timer = NULL

@iw2lsi
Copy link
Contributor

iw2lsi commented Jun 8, 2022 via email

@hpsaturn
Copy link
Member Author

@roberbike when you have some time, please check this PR. If you think that it is ok, I will merge it to geiger_version branch

@hpsaturn hpsaturn merged commit 9e8a768 into kike-canaries:geiger_sensor Jun 28, 2022
@iw2lsi
Copy link
Contributor

iw2lsi commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants