raffmont / sensesp-windlass-controller Goto Github PK
View Code? Open in Web Editor NEWA smart controller for chain counter sensor provided windlasses.
License: Apache License 2.0
A smart controller for chain counter sensor provided windlasses.
License: Apache License 2.0
havent as yet implemented hardware to check,
but looking at line 165… it seems to be incorrect?
if im reading correctly instaed of.
goUpPin
it should be
goingUpPin
look fwd to understand if my reading is correct?
hi, thx for updating the earlier error.
i have the program loading and running,
it is correctly reading/displaying the windlass speed - all good
(after i made some changes to the read period & corresponding moving average parameters)
also it is counting up (increasing) when i have the input pulses connected to respective chainCounterPin and chainSpeedPin
and it displays "freedown"
however i cant get it working with a "high" input applied to either the goingUpPin or goingDownPin.
(it continues to only count up and show "freedown")
eg it never ddisplays "off"
Is the main.cpp that you have on the repository the most updated you are using?
did you ever get it working correctly?
Note : im not using the external control via the windlassStatusListener...
im only inputting a pulse train ... and either alternately pulling goingUpPin or goingDownPin to high.
does this matter?
any insights appreciated
further to the latest pull request, ive made some small progress with non vol storeage ..
but havent as yet got a “idleCounter” working .
so didn’t want to confuse you with too many pull requests.
my programming skills are very rudimentary … hence im having to do a lot of reading and learning to progress…
my thinking is to have an idleCounter inside the lamda function that does the chainCounter increment/decrement,
and each time an increment/decrement happens, the idlecounter is reset to 60 (“seconds”)
then a separate function that counts the idlecounter down over a 60second period,
and when idlecounter =0 (aka after 60 sec period of no chain activity) it does the put of chaincounter into non vol.
im hoping your programming skills well beyong mine … and you can assist with above ..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.