-
Notifications
You must be signed in to change notification settings - Fork 72
meade offset removed conditionally #168
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
Conversation
Looks like your PR has code that needs to be changed in order to meet our coding standards!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI in order for all the workflow checks to pass you also need to update Changelog.md
and Version.h
src/Longitude.cpp
Outdated
|
||
// define INDI in the local configuration if you want it to work | ||
#ifndef INDI | ||
#define INDI 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rename this #define
to be a little more specific. INDI_LONGITUDE_HACK
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually... it's the opposite, at least from my understanding. What it does is preserve the current parsing on Gg12 -> 180 - 12 for users of the current ASCOM driver, when the correct value should be - 12. The parsing assumes that KStars/Meade/ASCOM will have a 180 - x offset added when in fact it does not.
The whole thing is explained here (and I should referenced this in the subject): #166
I just named it INDI (which is a lame name, agreed, maybe INDI_SUPPORT) because I have a feeling there might be more stuff coming in to support KStars and I didn't want flags for all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can re-evaluate at a later date if more INDI-specific changes are needed. More specific is better in the current case.
I don't get the needed change for changelog and version. Why is this on me to do that? How would I know which version this is going into? Normally, you'd merge some PRs to develop, then decide it's time for a release and do the changelog and version in a commit there... |
Added version stuff, renamed and moved define and force-pushed. |
|
It would be appreciated if you didn't squash+force-push while a PR is under review (i.e. only do that right before the PR is going to be merged). It makes it very hard to follow incremental changes and review them accordingly. |
**V1.10.8 - Updates** | ||
- Fix Meade parsing from INDI clients. | ||
|
||
**V1.10.6 - Updates** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you need to fetch and rebase your changes onto develop, you created your branch quite a while ago:
# Add an upstream URL
# This URL is for ssh, change it if you use HTTPS
git remote add upstream git@github.com:OpenAstroTech/OpenAstroTracker-Firmware.git
git fetch -p upstream
git rebase -i origin/develop # Interactive rebase
# Fix merge conflicts
git push -f # Force push is needed because the commits have changed
#include "Longitude.hpp" | ||
|
||
#if INDI_SUPPORT == 1 | ||
#define LONGITUDE_OFFSET 0L |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add in
#pragma message("Note: INDI offset used, firmware will not function correctly with ASCOM!")
? Just so that we can have traceability if a user is having problems.
src/Longitude.cpp
Outdated
|
||
// define INDI in the local configuration if you want it to work | ||
#ifndef INDI | ||
#define INDI 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can re-evaluate at a later date if more INDI-specific changes are needed. More specific is better in the current case.
|
||
// define INDI_SUPPORT in the local configuration if you want it to work | ||
// currently this will fix Meade longitude parsing | ||
#ifndef INDI_SUPPORT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this to the Misc Configuration
section of this file
@cameronswinoga Should I create a new PR with these changes if i wish to see them merged? |
You also need to fix the sign of the utc offset in the meadeparser |
Like so, but you also need to move the flag to Configuration_avd.hpp (or just skip these conditionals alltogether and just fix it, as this is only about windows users not needing to update the ASCOM driver) :
|
Fixes for this are included in #181. |
Fixes made in #181 |
whole thing is explained here: #166