-
Notifications
You must be signed in to change notification settings - Fork 7
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
AtHome flag may be false when FindHome completes #8
Comments
From you email : "When the dome stops, it is by definition at the home position.” 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”. |
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. |
On 22 Oct 2019, at 14:26, dave4robots ***@***.***> wrote:
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.
Weird.
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.
Could the fact that it end up being off by several degree also impact the homing ?
In any case if you want to avoid the retry that send the dome retating over and over, use the new version where this is disable.
It’ll do one homing and if it’s not on the home magnet when the dome stop it will report an error instead.
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.
I’ll run some test tonight and will do a lot of homing at different speed.
Best of luck and thanks for all the support so far both Tim and Rodolphe.
No problem.
Rodolphe
… —
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#8?email_source=notifications\u0026email_token=AAHEDIMPSU2YNHHS6X7EKL3QP5VZNA5CNFSM4JDSCNPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7IOSA#issuecomment-545163080", "url": "#8?email_source=notifications\u0026email_token=AAHEDIMPSU2YNHHS6X7EKL3QP5VZNA5CNFSM4JDSCNPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7IOSA#issuecomment-545163080", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
--
| Rodolphe Pineau RTI-Zone |
| http://www.rti-zone.org/ |
|
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. |
Ensure that status is only reported at the end of the homing operation. Ensure that AtHome is true after a successful homing operation Streamline the home sensor code
Issue #8 improve homing algorithm
This problem was raised when a user observed the dome apparently trying multiple times to find the home sensor. The user was using the X2 driver.
Rodolphe reports:
To which I have replied:
The text was updated successfully, but these errors were encountered: