Bi-monthly release with minor bug fixes and improvements
INDI::AlignmentSubsystem::AlignmentDatabaseEntry NewEntry;
struct ln_equ_posn RaDec;
RaDec.ra = (ra * 360.0) / 24.0; // normally, this would be the ra/dec the mount thinks it's at, but for testing, use the same value as what we received
RaDec.dec = dec;
NewEntry.ObservationJulianDate = ln_get_julian_from_sys();
NewEntry.RightAscension = ra;
NewEntry.Declination = dec;
NewEntry.TelescopeDirection = TelescopeDirectionVectorFromEquatorialCoordinates(RaDec);
NewEntry.PrivateDataSize = 0;
if (!CheckForDuplicateSyncPoint(NewEntry))
{
GetAlignmentDatabase().push_back(NewEntry);
UpdateSize();
Initialise(this);
ReadScopeStatus();
}
INDI::AlignmentSubsystem::TelescopeDirectionVector TDV;
ln_equ_posn RaDec; // Decimal Degrees for RA and Dec
// ra is decimal hours
if (TransformCelestialToTelescope(ra, dec, 0, TDV))
{
// The alignment subsystem has successfully transformed my coordinate
EquatorialCoordinatesFromTelescopeDirectionVector(TDV, RaDec);
targetRa = (RaDec.ra * 24.0) / 360.0; // convert to decimal hours
targetDec = RaDec.dec;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
// set mount type to alignment subsystem
SetApproximateMountAlignmentFromMountType(EQUATORIAL);
// tell the alignment math plugin to reinitialise
Initialise(this);
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
sudo apt install libgmock-dev libgtest-dev
git checkout test/alignment_subsystem
mkdir -p build/indi
cd build/indi
cmake -DINDI_BUILD_UNITTESTS=ON -DCMAKE_BUILD_TYPE=Debug ../../indi
make
cd test
ctest -V -R test-alignment
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.