×

INDI Library v1.9.7 Released (29 Jul 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

indi_celestron_cgx - direct usb connection to CGX/CGX-L

  • Posts: 207
  • Thank you received: 118
I've created a simple Celestron CGX driver that can use the USB port on the mount, without the hand controller or special aux cable. It does not use the new alignment subsystem, so goto accuracy is limited, but goto, sync, park, and guiding work (in the northern hemisphere). PEC is not implemented yet.

github.com/rickbassham/indi-celestron-cgx

Based loosely on the indi-celestronaux driver. Feel free to test.

I can guarantee this doesn't work in the southern hemisphere at the moment.
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
The following user(s) said Thank You: Jim S.
1 year 8 months ago #63873

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

  • Posts: 62
  • Thank you received: 9
Hey Rick,

I was looking through your github project (.github/workflows/build.yml)

and line 11: -- os: ["20.04", "18.04", "16.04"] -- and line 48 -- runs-on: ubuntu-20.04 --

Recently updated (yesterday) to Groovy Gorilla 20.10 and spent the day reconfiguring Kstars as the new OS disabled my -- apt-add-repository -- 's

Should I add the "20.10" to line 11 prior to compiling?

Thanks in advance.

Jim
Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.
Last edit: 1 year 8 months ago by Jim S..
1 year 8 months ago #63984

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

  • Posts: 62
  • Thank you received: 9
Hey Rick,

Received error on cmake: added /build/ to recover from error

jim@JWS:~/Projects/build/indi-celestron-cgx$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-celestron-cgx
CMake Error: The source directory "/home/jim/Projects/indi-celestron-cgx" does not exist.

From your README.md
Thank you in advance

Jim
Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.
Last edit: 1 year 8 months ago by Jim S..
1 year 8 months ago #63996

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

  • Posts: 207
  • Thank you received: 118
Hey Jim, I updated the build instructions in the readme. But the build directory should typically be a different directory than the source. In the instructions, I left out where to checkout the code to. Hope it is more clear now.
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
The following user(s) said Thank You: Jim S.
1 year 8 months ago #63998

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

  • Posts: 62
  • Thank you received: 9
The new README.md directions worked, no issues. Thanks for your patience, been awhile since I have done command line or compiling.

I had some warnings on the make side and will wait for your reply prior to doing a make install.

Posted below after cmake:

/home/jim/Projects/indi-celestron-cgx/auxproto.cpp:305:11: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
305 | if (p < 0)
| ~~^~~
[ 50%] Building CXX object CMakeFiles/indi_celestron_cgx.dir/celestroncgx.cpp.o
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp: In member function ‘bool CelestronCGX::handleCommand(AUXCommand)’:
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_SET_NEG_GUIDERATE’ not handled in switch [-Wswitch]
383 | switch (cmd.cmd)
| ^
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_AT_INDEX’ not handled in switch [-Wswitch]
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_SEEK_INDEX’ not handled in switch [-Wswitch]
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_ENABLE_CORDWRAP’ not handled in switch [-Wswitch]
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_DISABLE_CORDWRAP’ not handled in switch [-Wswitch]
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_SET_CORDWRAP_POS’ not handled in switch [-Wswitch]
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_POLL_CORDWRAP’ not handled in switch [-Wswitch]
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:383:12: warning: enumeration value ‘MC_GET_CORDWRAP_POS’ not handled in switch [-Wswitch]
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp: In member function ‘virtual bool CelestronCGX::SetTrackMode(uint8_t)’:
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:689:41: warning: unused parameter ‘mode’ [-Wunused-parameter]
689 | bool CelestronCGX::SetTrackMode(uint8_t mode)
| ~~~~~~~~^~~~
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp: In member function ‘virtual bool CelestronCGX::SetCurrentPark()’:
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:749:18: warning: comparison between ‘enum EQAlignment::TelescopePierSide’ and ‘enum INDI::Telescope::TelescopePierSide’ [-Wenum-compare]
749 | if (pierSide == PIER_WEST)
| ~~~~~~~~~^~~~~~~~~~~~
/home/jim/Projects/indi-celestron-cgx/celestroncgx.cpp:749:18: warning: comparison between types ‘EQAlignment::TelescopePierSide’ and ‘INDI::Telescope::TelescopePierSide’ [-Wsign-compare]
[ 75%] Building CXX object CMakeFiles/indi_celestron_cgx.dir/simplealignment.cpp.o
[100%] Linking CXX executable indi_celestron_cgx
make[2]: Leaving directory '/home/jim/Projects/build/indi-celestron-cgx'
[100%] Built target indi_celestron_cgx
make[1]: Leaving directory '/home/jim/Projects/build/indi-celestron-cgx'
Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.
1 year 8 months ago #64001

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

  • Posts: 207
  • Thank you received: 118
Those warnings are fine. I still need to do some code cleanup. I tested this last night with an imaging session, and had a lot of success. The only thing that failed was the automated meridian flip, and I think I can fix that pretty easily. I was surprised at the goto accuracy I got. Once I was polar aligned, I was seeing about 3 arcminute accuracy in gotos, and sync and slew managed to get it the rest of the way. That was going from Saturn across the sky to the Heart Nebula.
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
The following user(s) said Thank You: Jim S.
1 year 8 months ago #64002

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

  • Posts: 62
  • Thank you received: 9


Outstanding ! Thank you Sir for being patient. At moment we have cloudy weather here but hope to test soon.

Jim

BTW it compiled fine on 20.10 Groovy Gorilla, I did not do anything with line 11. os: ["20.04", "18.04", "16.04"]
Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.
1 year 8 months ago #64003

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

  • Posts: 207
  • Thank you received: 118
Yeah, that line is just for automated builds using github actions. They aren't quite working well yet, but once they are, I'll set it up to generate releases in github, so it'll be easy to track new versions.
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
The following user(s) said Thank You: Jim S.
1 year 8 months ago #64005

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

  • Posts: 207
  • Thank you received: 118
When you use it, be sure to click the "Align" button in the INDI Control Panel once you are connected. That will send the mount to the "switch" position and get all the calculations ready for gotos.
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
The following user(s) said Thank You: Jim S.
1 year 8 months ago #64006

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

  • Posts: 62
  • Thank you received: 9

Rick,

That should be easy to remember as the HC requests go to 'switch' as its first command on power up. I will make a sticky note and place it on my laptop now :)

My normal setup procedure (I travel to dark sites, no observatory) is power on the HC/Mount then set the 'switch', power down. After that Polar Align using the PoleMaster. Then I power the mount back up, set 'switch' on the HC, followed by the alignment using the HC. Without the HC I should place the 'Align' button on the INDI Control Panel before and after polar alignment routine? Or will this create issues with the connection via software?

Thanks

Jim
Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.
1 year 8 months ago #64008

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

  • Posts: 207
  • Thank you received: 118
For now I would do it before the polar alignment, then again after. It just resets the simple alignment module I wrote back to a known position. I haven't used the polemaster before.

I would imagine in your case the workflow would look like this:

Connect to the mount using INDI, click the Align button.
Disconnect the mount from INDI, power down the mount.
Go through the polar align with polemaster.
Power it back on, connect using INDI, click the Align button again.
Do your normal imaging session. :)

On a side note, I would recommend trying out the polar align process in Ekos. It worked really well last night for me using this driver. That workflow would look like this:

Connect to the mount using INDI, click the Align button.
Using the Alignment tab in Ekos, do a polar alignment.
Click the Align button again.
Do your normal imaging session. :)
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
The following user(s) said Thank You: Jim S.
1 year 8 months ago #64009

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

  • Posts: 62
  • Thank you received: 9

I will try it using both. I am kinda partial to the PoleMaster as it cost me a pretty penny and I got the unit as I am not a big fan of the Celestron all star alignment routine or the polar scope as a 'side' mounted scope on the CGX.

Jim
Celestron CGX, QSI683 Astrodon Gen 2 E series LRGB, Ha, OIII, ES102CF, ZWO-ASI178MC, 60mm guide scope, Pegasus Focus Cube 2, Feather Touch Focuser.
1 year 8 months ago #64010

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

Time to create page: 0.643 seconds