Skip to content
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

Add Oasis Filter Wheel driver and update compilation and installation instructions for indi-astroasis #842

Merged
merged 38 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4d29c15
Oasis Focuser INDI driver initial version
astroasis May 5, 2023
766064f
Find Astroasis libraries
astroasis May 6, 2023
2e41da8
Initial version for Oasis Focuser INDI driver
astroasis May 7, 2023
7a2ab41
Initial version for Oasis Focuser INDI driver
astroasis May 7, 2023
262dc19
Oasis Focuser SDK header file
astroasis May 8, 2023
030560b
Added Astroasis driver
astroasis May 8, 2023
1090e96
Added readme and installation files
astroasis May 9, 2023
9493f49
Use version info from CMakeLists.txt
astroasis May 9, 2023
794ac20
Updated sdk version to 1.0.5
astroasis May 9, 2023
c22029c
Added spec file
astroasis May 9, 2023
4b3006a
Updated for coding style
astroasis May 9, 2023
1c6d1a3
Oasis focuser sdk lib file for armhf
astroasis May 9, 2023
11fc309
Oasis focuser sdk lib file for armhf
astroasis May 9, 2023
2b1cd33
Implemented ambient temeperature and backlash compensation direction …
astroasis May 9, 2023
d6d737c
Oasis focuser sdk lib file for x64
astroasis May 9, 2023
8bbc1ba
Disable build for x86
astroasis May 9, 2023
70bfaab
Merge branch 'master' of https://github.com/astroasis/indi-3rdparty
astroasis May 9, 2023
9e4a5bf
Merge remote-tracking branch 'upstream/master'
astroasis May 9, 2023
d2425a3
Merge remote-tracking branch 'upstream/master'
astroasis May 25, 2023
d19ea06
Fix incorrect Vender ID for Astroasis USB devices
astroasis May 25, 2023
40b0e31
Merge remote-tracking branch 'upstream/master'
astroasis May 26, 2023
368a74b
Fixed incorrect max position value
astroasis May 26, 2023
9f7c998
Merge remote-tracking branch 'upstream/master'
astroasis Jun 29, 2023
d7ea07f
Added libastroasis for building indi-astroasis on Fedora COPR
astroasis Jun 29, 2023
6e72360
Merge remote-tracking branch 'upstream/master'
astroasis Sep 25, 2023
3ad9cf8
Fix spelling
astroasis Sep 25, 2023
220b36b
Merge remote-tracking branch 'upstream/master'
astroasis Sep 26, 2023
e015275
Update for compilation and installation instructions
astroasis Sep 26, 2023
fa8a854
Merge remote-tracking branch 'upstream/master'
astroasis Sep 30, 2023
dc842b3
Merge remote-tracking branch 'upstream/master'
astroasis Sep 30, 2023
270a67a
Add Oasis Filter Wheel driver
astroasis Sep 30, 2023
8538735
Add Oasis Filter Wheel driver
astroasis Sep 30, 2023
8c7db60
Merge remote-tracking branch 'upstream/master'
astroasis Sep 30, 2023
3e4520e
Add Oasis filter wheel library file for 32bit arm
astroasis Sep 30, 2023
afa3aa4
Add Oasis filter wheel library file for 64bit arm
astroasis Sep 30, 2023
ca03b15
Update indi-astroasis change log
astroasis Oct 2, 2023
5da2516
Merge branch 'master' of https://github.com/astroasis/indi-3rdparty
astroasis Oct 2, 2023
0225881
Add Oasis Filter Wheel driver library files
astroasis Oct 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion cmake_modules/FindASTROASIS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,22 @@ else (ASTROASIS_INCLUDE_DIR AND ASTROASIS_LIBRARIES)
${GNUWIN32_DIR}/include
)

find_library(ASTROASIS_LIBRARIES NAMES oasisfocuser
find_library(ASTROASIS_FOCUSER_LIBRARIES NAMES oasisfocuser
PATHS
${_obLinkDir}
${GNUWIN32_DIR}/lib
)

find_library(ASTROASIS_FILTER_WHEEL_LIBRARIES NAMES oasisfilterwheel
PATHS
${_obLinkDir}
${GNUWIN32_DIR}/lib
)

if (ASTROASIS_FOCUSER_LIBRARIES AND ASTROASIS_FILTER_WHEEL_LIBRARIES)
set(ASTROASIS_LIBRARIES ${ASTROASIS_FOCUSER_LIBRARIES} ${ASTROASIS_FILTER_WHEEL_LIBRARIES})
endif (ASTROASIS_FOCUSER_LIBRARIES AND ASTROASIS_FILTER_WHEEL_LIBRARIES)

if(ASTROASIS_INCLUDE_DIR AND ASTROASIS_LIBRARIES)
set(ASTROASIS_FOUND TRUE)
else (ASTROASIS_INCLUDE_DIR AND ASTROASIS_LIBRARIES)
Expand Down
7 changes: 7 additions & 0 deletions debian/indi-astroasis/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
indi-astroasis (1.1) jammy; urgency=medium

* Add Oasis Filter Wheel driver.
* Update compilation and installation instructions.

-- Frank Chen <[email protected]> Mon, 2 Oct 2023 21:00:00 +0800

indi-astroasis (1.0) jammy; urgency=medium

* Initial release.
Expand Down
6 changes: 6 additions & 0 deletions debian/libastroasis/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
libastroasis (1.1.0) jammy; urgency=medium

* Add Oasis Filter Wheel driver library files.

-- Frank Chen <[email protected]> Sun, 1 Oct 2023 01:00:00 +0800

libastroasis (1.0.5) jammy; urgency=medium

* Initial Release.
Expand Down
13 changes: 12 additions & 1 deletion indi-astroasis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ find_package(USB1 REQUIRED)
find_package(Threads REQUIRED)

set(ASTROASIS_VERSION_MAJOR 1)
set(ASTROASIS_VERSION_MINOR 0)
set(ASTROASIS_VERSION_MINOR 1)

set(INDI_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/indi")

Expand All @@ -35,11 +35,22 @@ ELSE()
target_link_libraries(indi_oasis_focuser ${INDI_LIBRARIES} ${ASTROASIS_LIBRARIES} ${USB1_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
ENDIF()

########### indi_oasis_filter_wheel ###########
add_executable(indi_oasis_filter_wheel ${CMAKE_CURRENT_SOURCE_DIR}/oasis_filter_wheel.cpp)
IF (APPLE)
set(CMAKE_EXE_LINKER_FLAGS "-framework IOKit -framework CoreFoundation")
target_link_libraries(indi_oasis_filter_wheel ${INDI_LIBRARIES} ${ASTROASIS_LIBRARIES} ${LIBUSB_LIBRARIES})
ELSE()
target_link_libraries(indi_oasis_filter_wheel ${INDI_LIBRARIES} ${ASTROASIS_LIBRARIES} ${USB1_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
ENDIF()

#####################################

if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")
target_link_libraries(indi_oasis_focuser rt)
target_link_libraries(indi_oasis_filter_wheel rt)
endif (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")

install(TARGETS indi_oasis_focuser RUNTIME DESTINATION bin)
install(TARGETS indi_oasis_filter_wheel RUNTIME DESTINATION bin)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/indi_astroasis.xml DESTINATION ${INDI_DATA_DIR})
28 changes: 17 additions & 11 deletions indi-astroasis/INSTALL
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
Installation instructions
=========================

Compile Instructions
- Assumption: INDI package installed (see https://indilib.org/download.html)
- Retrieve the sources for the Astroasis driver
git clone https://github.com/astroasis/indi-3rdparty.git
- cd indi-3rdparty
checkout branch "master"
- mkdir -p build/indi-astroasis
- cd build/indi-astroasis
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../../indi-astroasis
- sudo make install
Compilation Instructions

And now start the INDI server and kstars.
Step 1: build and install libastroasis
1) $ cd indi-3rdparty
2) $ mkdir -p build/libastroasis
3) $ cd build/libastroasis
4) $ cmake -DCMAKE_INSTALL_PREFIX=/usr ../../libastroasis
5) $ make
6) $ sudo make install

Step 2: build and install indi-astroasis
1) $ cd indi-3rdparty
2) $ mkdir -p build/indi-astroasis
3) $ cd build/indi-astroasis
4) $ cmake -DCMAKE_INSTALL_PREFIX=/usr ../../indi-astroasis
5) $ make
6) $ sudo make install

And now start the INDI server and kstars.
6 changes: 6 additions & 0 deletions indi-astroasis/indi_astroasis.xml.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
<version>@ASTROASIS_VERSION_MAJOR@.@ASTROASIS_VERSION_MINOR@</version>
</device>
</devGroup>
<devGroup group="Filter Wheels">
<device label="Oasis Filter Wheel" manufacturer="Astroasis">
<driver name="Oasis Filter Wheel">indi_oasis_filter_wheel</driver>
<version>@ASTROASIS_VERSION_MAJOR@.@ASTROASIS_VERSION_MINOR@</version>
</device>
</devGroup>
</driversList>
Loading
Loading