×

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

Bi-monthly release with minor bug fixes and improvements

Roll_off startup crash

  • Posts: 250
  • Thank you received: 3
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.
Last edit: 3 years 8 months ago by Porchet.
3 years 8 months ago #57480

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

  • Posts: 315
  • Thank you received: 42

Replied by wotalota on topic Roll_off startup crash

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.
Last edit: 3 years 8 months ago by wotalota.
3 years 8 months ago #57509

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

  • Posts: 250
  • Thank you received: 3

Replied by Porchet on topic Roll_off startup crash

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
3 years 8 months ago #57558

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

Replied by Jasem Mutlaq on topic Roll_off startup crash

Remove the getWeatherState() line and recompile again. To protect the dome, use the INDI Watchdog driver.
3 years 8 months ago #57561

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

  • Posts: 250
  • Thank you received: 3

Replied by Porchet on topic Roll_off startup crash

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>
Last edit: 3 years 8 months ago by Porchet.
3 years 8 months ago #57562

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

Replied by Jasem Mutlaq on topic Roll_off startup crash

This part:
else if (getWeatherState() == IPS_ALERT)
{
LOG_WARN("Weather conditions are in the danger zone. Cannot open roof");
 return IPS_ALERT;
 }
3 years 8 months ago #57565

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

  • Posts: 250
  • Thank you received: 3

Replied by Porchet on topic Roll_off startup crash

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$ 
3 years 8 months ago #57579

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

  • Posts: 315
  • Thank you received: 42

Replied by wotalota on topic Roll_off startup crash

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$
Last edit: 3 years 8 months ago by wotalota.
3 years 8 months ago #57583

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

  • Posts: 250
  • Thank you received: 3

Replied by Porchet on topic Roll_off startup crash

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.
3 years 8 months ago #57586

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

  • Posts: 250
  • Thank you received: 3

Replied by Porchet on topic Roll_off startup crash

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>
Last edit: 3 years 8 months ago by Porchet.
3 years 8 months ago #57846

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

  • Posts: 554
  • Thank you received: 138
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.
3 years 8 months ago #57847

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

  • Posts: 250
  • Thank you received: 3

Replied by Porchet on topic Roll_off startup crash

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$
3 years 8 months ago #57849

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

Time to create page: 1.280 seconds