Dome slewing issue

Ok, I can now figure out what side of the pier my scope will be on and have added DestinationSideOfPier to my driver.
Still have an issue with SGP 3.1.0.454 however.
For some reason the dome calculation is coming up with an altitude of -9.96… and this makes the dome slew to 38 deg. Az.
The dome should slew to 275 deg Az. and it does after the target is done!
How am I getting a negative altitude? Here is part of the log.

[02/27/20 13:24:46.749][DEBUG][Sequence Thread][SQ;] Sending Notification: Status - Slewing to target “NGC7000”…

[02/27/20 13:24:46.751][DEBUG][Sequence Thread][SQ;] Telescope: Slewing to J2000 RA: 20.4066666666667 (20h24m24.00s) Dec: 38.5333333333333 (38°32’00.00")

[02/27/20 13:24:46.751][DEBUG][Sequence Thread][SQ;] Telescope: Slew received J2000 coordinates, mount requires JNOW, converting…

[02/27/20 13:24:46.753][DEBUG][Sequence Thread][SQ;] Telescope: Slewing to JNOW RA: 20.4184766375422 Dec: 38.5952697351316

[02/27/20 13:24:46.785][DEBUG][Sequence Thread][SQ;] Telescope: Calling Observatory Slave Slew

[02/27/20 13:24:46.817][DEBUG][Sequence Thread][SQ;] DestinationSideOfPier Received from telescope as pierEast

[02/27/20 13:24:47.028][DEBUG][Sequence Thread][SQ;] Observatory: Calculating new position using:

[02/27/20 13:24:47.028][DEBUG][Sequence Thread][SQ;] Azimuth: 18.5970373022364

[02/27/20 13:24:47.028][DEBUG][Sequence Thread][SQ;] Altitude: -9.96948615914367

[02/27/20 13:24:47.028][DEBUG][Sequence Thread][SQ;] Hour Angle: 48.1986837733797

[02/27/20 13:24:47.028][DEBUG][Sequence Thread][SQ;] Pier Side: East

[02/27/20 13:24:47.035][DEBUG][Sequence Thread][SQ;] Observatory: Adjustment needed, slewing to Azimuth: 37.7505865706224

[02/27/20 13:24:48.322][DEBUG][Sequence Thread][SQ;] Scope reports it is done with synchronous slew, verifying…

[02/27/20 13:24:48.322][DEBUG][Sequence Thread][SQ;] Telescope: Observatory is reporting slewing

.
.

[02/27/20 13:25:15.566][DEBUG][Camera Thread][SQ;CC;] ASCOM Camera: exposure started, waiting…

[02/27/20 13:25:16.226][DEBUG][Dome Thread][SQ;CC;] Observatory: Calculating new position using:

[02/27/20 13:25:16.226][DEBUG][Dome Thread][SQ;CC;] Azimuth: 285.944444444444

[02/27/20 13:25:16.226][DEBUG][Dome Thread][SQ;CC;] Altitude: 52.6197222222222

[02/27/20 13:25:16.226][DEBUG][Dome Thread][SQ;CC;] Hour Angle: 48.3204166650772

[02/27/20 13:25:16.226][DEBUG][Dome Thread][SQ;CC;] Pier Side: East

[02/27/20 13:25:16.226][DEBUG][Dome Thread][SQ;CC;] Observatory: Adjustment needed, slewing to Azimuth: 274.937602621632

[02/27/20 13:25:17.848][DEBUG][Dome Thread][SQ;CC;] Dome thread is IDLE…

Here are my observatory dome settings.

Thanks,
WilliamSGP obs setting

When we perform a slew we are unable to use the alt/az values directly from your telescope as it is providing the real time data, so we have to calculate these values. We use the Latitude and Longitude from your scope as well as the date/time from your PC. I’d validate that all those things are coming back correct.

Thank you,
Jared

Thank you for your reply.
I think I will continue to use my scope and dome tracking software, that I wrote.
It waits for the scope to stop moving the calculates where the dome should slew to then moves the dome. This software is currently running 3 observatories and works perfectly. All my inputs are coming from the mount. ASCOM telescope drivers work fine with the software as does direct control.
I will just put in a large delay after the telescope slews to allow my dome to position itself.

Sincerely,
William