×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

[FIXED] personal roll on roof driver bug/issue?

  • Posts: 2255
  • Thank you received: 223
I'm not sure if this a bug or not.
I start the roof driver and in Ekos I notice the following two issues.

root@heidenrod-obs:~# date
Sun 24 Jun 18:34:26 CEST 2018


1st one is the time reported, it's off by 2 hours.
2nd one is actually more important, the roof is 100% closed but it's reporting as unparked on start !!!
unpark means open.
Last edit: 5 years 9 months ago by Gonzothegreat.
5 years 9 months ago #26761

Please Log in or Create an account to join the conversation.

  • Posts: 1957
  • Thank you received: 420
1st one: check the timezone of your OS. I guess you’re in Europe which currently at Central European Summer Time (CEST) which is two hours ahead of UTC.
5 years 9 months ago #26763

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
server:
root@heidenrod-obs:~# date
Sun 24 Jun 18:56:24 CEST 2018
root@heidenrod-obs:~#

local:
Stephanes-MacBook-Air:~ stephane$ date
Sun 24 Jun 2018 18:56:32 CEST
Stephanes-MacBook-Air:~ stephane$
5 years 9 months ago #26764

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I've found the issue with #1


:whistle:
5 years 9 months ago #26765
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I have a lead on issue #2

I've done a test with the 'RollOff Simulator', was unpark before, I parked it and saved.
Now need to work out why my driver doesn't write to the ParkData.xml file.
5 years 9 months ago #26766

Please Log in or Create an account to join the conversation.

Maybe permission issue? You should avoid running as root.. you can chmod +s the driver that needs the wiringpi stuff and leave everything as is without root.
5 years 9 months ago #26773

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
Definitely not a permission issue, and I'm running the drivers as a non privilege user.
I switch from root to the normal user as I go along, I have multiple ssh connections open for testing.

root@heidenrod-obs:/home/heidenrod/.indi# ll -ld ../.indi/
drwxrwxr-x 2 heidenrod heidenrod 4096 Jun 24 23:17 ../.indi//
root@heidenrod-obs:/home/heidenrod/.indi# ll ParkData.xml
-rw-rw-r-- 1 heidenrod heidenrod 404 Jun 24 23:16 ParkData.xml
root@heidenrod-obs:/home/heidenrod/.indi#

I'm talking to Derek by email, will see if he can figure it out.
5 years 9 months ago #26777

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I have now fixed it, it was in the code.
github.com/Trigger-broom-289/odroid-indi...8aa87d2a20dab403ddfa

SetParked(false);
SetParked(true);
were not in the wright place.
5 years 9 months ago #26779

Please Log in or Create an account to join the conversation.

Time to create page: 0.513 seconds