×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Roll_off startup crash

1 week 6 days ago 1 week 5 days ago by constant1462.
constant1462
Expert Boarder
Expert Boarder
Posts: 110
More
Topic Author
Roll_off startup crash #57480
Hello

I'm having a problem again since the kstars update.

Indeed my Rolloff.ino driver crashes as soon as I launch indi.

Do you know why, and am I the only one.

This is the second time this happens after an update.

Thank you for your help.

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

1 week 5 days ago 1 week 5 days ago by wotalota.
wotalota
Gold Boarder
Gold Boarder
Posts: 176
More
Roll_off startup crash #57509
Christophe,

It is the same case as previously, the driver is not released as part of INDI and needs to be maintained.
You need to follow the INSTALL directions again to rebuild the driver to be compatible with the release.
indilib.org/forum/development/7183-indi-arduino.html

There have been changes to the way weather alerts are handled to park the mount and close the roof.
indilib.org/forum/domes/6476-dome-parkin...-parking-policy.html

You will need to change over to use the watchdog driver. Watch out that your mount park switch locking of roof movement does not interfere with the software checks. If the roof locked light is on it will not respond to movement requests. By the time the park roof request is received the roof lock should have been released, but it needs testing.

Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro

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

1 week 3 days ago
constant1462
Expert Boarder
Expert Boarder
Posts: 110
More
Topic Author
Roll_off startup crash #57558
Hello Tom
I tried to re-install the driver, but there's a mistake on installation.
[sudo] Mot de passe de christophe : 
Scanning dependencies of target indi_rolloffino
[ 50%] Building CXX object CMakeFiles/indi_rolloffino.dir/rolloffino.cpp.o
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp: In member function ‘virtual IPState RollOffIno::Move(INDI::Dome::DomeDirection, INDI::Dome::DomeMotionCommand)’:
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp:621:22: error: ‘getWeatherState’ was not declared in this scope; did you mean ‘getShutterState’?
  621 |             else if (getWeatherState() == IPS_ALERT)
      |                      ^~~~~~~~~~~~~~~
      |                      getShutterState
make[2]: *** [CMakeFiles/indi_rolloffino.dir/build.make:63: CMakeFiles/indi_rolloffino.dir/rolloffino.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/indi_rolloffino.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
-rwxr-xr-x 1 root root 460192 avr 26 1

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

1 week 3 days ago
knro
Administrator
Administrator
Posts: 8208
Karma: 51
Roll_off startup crash #57561
Remove the getWeatherState() line and recompile again. To protect the dome, use the INDI Watchdog driver.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 week 3 days ago 1 week 3 days ago by constant1462.
constant1462
Expert Boarder
Expert Boarder
Posts: 110
More
Topic Author
Roll_off startup crash #57562
hello
just like that
<code> LOG_WARN("DOME_CW directive received but roof is already fully opened");
SetParked(false);
return IPS_ALERT;
}
// else if (getWeatherState() == IPS_ALERT)
// {
// LOG_WARN("Weather conditions are in the danger zone. Cannot open roof");
// return IPS_ALERT;
// }

Initiate action
if (roofOpen())
{
roofOpening = true;
roofClosing = false;
LOG_INFO("Roof is opening...");</code>

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

1 week 3 days ago
knro
Administrator
Administrator
Posts: 8208
Karma: 51
Roll_off startup crash #57565
This part:
else if (getWeatherState() == IPS_ALERT)
{
LOG_WARN("Weather conditions are in the danger zone. Cannot open roof");
 return IPS_ALERT;
 }

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 week 3 days ago
constant1462
Expert Boarder
Expert Boarder
Posts: 110
More
Topic Author
Roll_off startup crash #57579
That's not it yet. I still have a problem
Scanning dependencies of target indi_rolloffino
[ 50%] Building CXX object CMakeFiles/indi_rolloffino.dir/rolloffino.cpp.o
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp: In member function ‘virtual IPState RollOffIno::Move(INDI::Dome::DomeDirection, INDI::Dome::DomeMotionCommand)’:
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp:623:14: error: ‘Initiate’ was not declared in this scope; did you mean ‘initstate’?
  623 |              Initiate action
      |              ^~~~~~~~
      |              initstate
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp:630:13: error: expected ‘}’ before ‘else’
  630 |             else
      |             ^~~~
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp:614:9: note: to match this ‘{’
  614 |         {
      |         ^
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp: At global scope:
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp:672:6: error: expected unqualified-id before ‘return’
  672 |      return    IPS_ALERT;
      |      ^~~~~~
/home/christophe/Bureau/arduino/Project/indi/3rdparty/indi-rolloffino/rolloffino.cpp:673:1: error: expected declaration before ‘}’ token
  673 | }
      | ^
make[2]: *** [CMakeFiles/indi_rolloffino.dir/build.make:63: CMakeFiles/indi_rolloffino.dir/rolloffino.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/indi_rolloffino.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
-rwxr-xr-x 1 root root 460192 avr 26 11:07 /usr/bin/indi_rolloffino
christophe@MiniPc:~/Bureau/arduino$ 

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

1 week 3 days ago 1 week 3 days ago by wotalota.
wotalota
Gold Boarder
Gold Boarder
Posts: 176
More
Roll_off startup crash #57583
That should have fixed it. It looks like you deleted the // comment indicator in front of the "Initiate" line
Perhaps you did not execute the git command to fetch the changed code?
You could start over.

To build the rolloffino roof driver, the INDI 3rdparty driver build files are needed. To obtain them see the directions in section 3 of the following web page, up to and including the git clone command.

In addition to the libraries listed in section 3, install libindi-dev

indilib.org/forum/general/210-howto-buil...st-libindi-ekos.html .

Following on from the example of using ~/Projects as the work area in the above directions.
cd ~/Projects/indi-3rdparty
git clone github.com/wotalota/indi-rolloffino.git
mkdir indi-rolloffino/build
cd indi-rolloffino/build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../
sudo make install

Example:
tg@tbreak:indi-3rdparty$ git clone github.com/wotalota/indi-rolloffino.git
Cloning into 'indi-rolloffino'...
remote: Enumerating objects: 64, done.
remote: Counting objects: 100% (64/64), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 64 (delta 31), reused 32 (delta 14), pack-reused 0
Unpacking objects: 100% (64/64), 35.46 KiB | 1.69 MiB/s, done.
tg@tbreak:indi-3rdparty$ mkdir indi-rolloffino/build
tg@tbreak:indi-3rdparty$ cd indi-rolloffino/build

tg@tbreak:build$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found INDI: /usr/local/lib/libindidriver.so;/usr/local/lib/libindiAlignmentDriver.so (found version "1.8.6")
-- Found NOVA: /usr/lib/x86_64-linux-gnu/libnova.so
-- Performing Test COMPATIBLE_FORTIFY_SOURCE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /wrk/dev/indi-3rdparty/indi-rolloffino/build

tg@tbreak:build$ make -j4
Scanning dependencies of target indi_rolloffino
[ 50%] Building CXX object CMakeFiles/indi_rolloffino.dir/rolloffino.cpp.o
[100%] Linking CXX executable indi_rolloffino
[100%] Built target indi_rolloffino

tg@tbreak:build$ sudo make install
[sudo] password for tg:
[100%] Built target indi_rolloffino
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/bin/indi_rolloffino
-- Set runtime path of "/usr/bin/indi_rolloffino" to ""
-- Installing: /usr/local/share/indi/indi_rolloffino.xml
tg@tbreak:build$

Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro

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

1 week 3 days ago
constant1462
Expert Boarder
Expert Boarder
Posts: 110
More
Topic Author
Roll_off startup crash #57586
Hello
So I'm going to try tomorrow, because I'm not at home, your solution, because indeed I may have put the old version.

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

4 days 9 hours ago 4 days 9 hours ago by constant1462.
constant1462
Expert Boarder
Expert Boarder
Posts: 110
More
Topic Author
Roll_off startup crash #57846
I'm having a problem with this command line.
<code>christophe@MiniPc:~$ cd ~/Projects/indi-3rdparty
christophe@MiniPc:~/Projects/indi-3rdparty$ git clone github.com/wotalota/indi-rolloffino.git
fatal: le dépôt 'github.com/wotalota/indi-rolloffino.git' n'existe pas
christophe@MiniPc:~/Projects/indi-3rdparty$

</code>

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

4 days 8 hours ago
ChrisRowland
Platinum Boarder
Platinum Boarder
Posts: 517
Karma: 9
More
Roll_off startup crash #57847
Pretty obvious, incorrect URL.

chris@AstroPi:~/Projects/indi-3rdparty $ git clone github.com/wotalota/indi-rolloffino.git
Cloning into 'indi-rolloffino'...
remote: Enumerating objects: 64, done.
remote: Counting objects: 100% (64/64), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 64 (delta 31), reused 32 (delta 14), pack-reused 0
Unpacking objects: 100% (64/64), done.

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

4 days 8 hours ago
constant1462
Expert Boarder
Expert Boarder
Posts: 110
More
Topic Author
Roll_off startup crash #57849
I have the same problem as before.
christophe@MiniPc:~/Projects/indi-3rdparty$ git clone github.com/wotalota/indi-rolloffino.git
fatal: le dépôt 'github.com/wotalota/indi-rolloffino.git' n'existe pas
christophe@MiniPc:~/Projects/indi-3rdparty$

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

Time to create page: 2.771 seconds