Comments (4)
From you email : "When the dome stops, it is by definition at the home position.”
then the home flag should be reporting At Home in the :SER,p,a,c,h,d# answer :
a = AtHome (1 = home sensor active, 0 = home sensor inactive)
May be this shouldn’t report the sensor active or not but At Home state which from an application stand point is what we care about when checking if the dome is “at home”.
Or if this is working as intended (actually reporting sensor state), then we need a proper command to ask the controller if the dome is At Home .
May be in ASCOM you assume that if the dome has stopped moving it’s at home, but I thing we should be able to asses this via a command or a state so that if the user click on “Find Home” we can avoid sending the @ghr command if the dome is already at home and make sure that when it stops it's because it did find home and not stop for other reason somewhere than is not home. So we need a way to check that the dome is indeed at home.
In the mean time I’ll remove the retry from my code to avoid sending the dome around multiple times for no reason.
from firmware.
I verified the magnets are in the proper place. I opened the SkyX dome controller and sent it to various azimuths and told it to home. It homed each time without incident. I could not replicate the problem.
This AM the problem of continuous clockwise happen with every home attempt and I tried about 5 times. I eventually gave up on home and just sent it to Park, which was several degrees off. I manually eyeballed home position because I was working from home and monitoring on my web camera. I got it to stop at the charge points and powered down.
This afternoon after a restart it appears to go to home position okay. So I wish I could provide more data but unable to replicate.
Best of luck and thanks for all the support so far both Tim and Rodolphe.
from firmware.
from firmware.
Here is the log from my plugin that shows that after backing it doesn't see the home sensor every time :
[Tue Oct 22 17:32:02 2019] [CNexDomeV3::isFindHomeComplete] [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isDomeMoving] In : m_bDomeIsMoving = Yes [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isDomeMoving] szResp = P11987 [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isDomeMoving] szResp = P12286 [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isDomeMoving] szResp = foundHome [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isDomeMoving] szResp = P145 [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isDomeMoving] szResp = P368 [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isDomeMoving] Out: m_bDomeIsMoving = Yes [Tue Oct 22 17:32:02 2019] [CNexDomeV3::isFindHomeComplete] still moving [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isFindHomeComplete] [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] In : m_bDomeIsMoving = Yes [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] szResp = P517 [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] szResp = P591 [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] szResp = :SER,600,0,12347,0,30# [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] szResp = onMotorStopped [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] szResp = Post slew from 4800 to 0 [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] szResp = P580 [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] szResp = P488 [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeMoving] Out: m_bDomeIsMoving = No [Tue Oct 22 17:32:03 2019] [CNexDomeV3::domeCommand] sending : @SRR [Tue Oct 22 17:32:03 2019] [CNexDomeV3::domeCommand] response : ':SER,420,0,12347,0,30' [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isDomeAtHome] response = SER,420,0,12347,0,30 [Tue Oct 22 17:32:03 2019] CNexDomeV3::isDomeAtHome bAthome : False [Tue Oct 22 17:32:03 2019] [CNexDomeV3::isFindHomeComplete] Not moving and not at home !!! [Tue Oct 22 17:32:04 2019] [CNexDomeV3::domeCommand] sending : @PRR [Tue Oct 22 17:32:04 2019] [CNexDomeV3::domeCommand] response : 'P321'
To get this result I set the speed to 1200 step/s and the acceleration to 1000ms.
If I use my previous value of 600 step.s and 500 ms acceleration here is the log :
[Tue Oct 22 17:37:31 2019] [CNexDomeV3::isFindHomeComplete] [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] In : m_bDomeIsMoving = Yes [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = P16 [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = :BV821# [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = foundHome [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = P67 [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = P141 [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = :SER,150,0,12347,0,30# [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = onMotorStopped [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = Post slew from 1200 to 0 [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] szResp = P130 [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeMoving] Out: m_bDomeIsMoving = No [Tue Oct 22 17:37:31 2019] [CNexDomeV3::domeCommand] sending : @SRR [Tue Oct 22 17:37:31 2019] [CNexDomeV3::domeCommand] response : ':SER,110,1,12347,0,30' [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isDomeAtHome] response = SER,110,1,12347,0,30 [Tue Oct 22 17:37:31 2019] CNexDomeV3::isDomeAtHome bAthome : True [Tue Oct 22 17:37:31 2019] [CNexDomeV3::isFindHomeComplete] At Home
With the slower speed and lower acceleration (and deceleration time) the magnet is ALWAYS detected.
I can repeat the 2 above test over and over and always get the same result.
In one case the At Home flag is 0 (faster speed and longer acceleration), in the other case it's 1 (slower speed and faster acceleration).
The end position between the 2 test is very minimal on my rig as it's small but it's enough to show a detected magnet vs not detected and therefore show it as not being at home.
from firmware.
Related Issues (20)
- Telescope aperture vignetting caused by 1 degree dome azimuth command resolution HOT 4
- Shutter close sensor does not operate correctly if triggered multiple times HOT 1
- slipping sprocket won't close shutter HOT 5
- When using manual control the home status is not updated HOT 16
- what is current version (3.2.1?) and is there a .hex for it HOT 2
- Changing slew destination without waiting for completion HOT 10
- Auto-close shutter on low battery volts HOT 1
- Incorrect values returned for `@RRS` HOT 2
- Shutter status after manual activation HOT 4
- ArduinoSTL library not compatible with AVR boards v1.8.3 HOT 2
- Dead Zone default is too high HOT 5
- Rotator loses pointing accuracy after many small nudges HOT 2
- Manual Rotator button no longer works with 4.0 HOT 9
- how to update to 4.0.1 firmware? HOT 2
- ASCOM Driver should warn the user if the firmware major version is higher than expected HOT 2
- close ( or stop) should immediately stop if the shutter is trying to open HOT 1
- Does the shutter firmware crash after some time? HOT 3
- Xbee S2C HOT 1
- ArduinoSTL library not compatible with AVR boards v1.8.3
- Req way to force close into the negative on the percent open HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firmware.