dokeeffe / indi-aldiroof

Arduino powered motor controller and an INDI driver for an astronomical observatory roof powered by an Aldi special 550w electric hoist
12 stars 4 forks source link

relay stops for no reasons #9

Open Adrien5353 opened 2 years ago

Adrien5353 commented 2 years ago

hi ! thank you for your work ! :)

got an issue with roof movements : when i open or close the roof, the relay stops after 15 seconds (20-25 is the delay needed for a full opening/closing ) . status is aborded/unknown. i can press again the same command, the roof is full opened/closed and the status is now CLOSED or OPENED with the fullyopen/close switches. tested with long AND short wires.
have you got an idea about what could cause this ?

dokeeffe commented 2 years ago

Adrien, Yes there are actually a hard-coded safety timeout n the code. Sorry I should have documented these better!! Are you using the INDI driver?

See #define MAX_ROLLOFF_DURATION 19 here https://github.com/dokeeffe/indi-aldiroof/blob/master/indi-driver/indi-aldiroof/aldiroof.cpp#L31 Thats 19 seconds though.

Try making that larger and recompiling to see if it helps.

Let me know if not. Derek

Adrien5353 commented 2 years ago

Yep, Thanx for anwsering. I had a few help, and fixed it this way. Now everything is OK and works pretty fine. Once again, thank you for your code. This is really helpful to build my own observatory <3