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

[gps] optitrack always send heading #1714

Merged
merged 2 commits into from
Jun 14, 2016

Conversation

bartslinger
Copy link
Contributor

Until now when flying with gps datalink (which we use for optitrack), you always need to define in your aiframe <define name="AHRS_HEADING_UPDATE_GPS_MIN_SPEED" value="0"/> to get heading updates.

I cannot imagine that you would want something else than 0, so I put it as default in the makefile.

@flixr
Copy link
Member

flixr commented Jun 11, 2016

I'm not sure if gps type datalink is only used for optitrack or also other cases (as it can of course in principle)....
Maybe it would be nicer to add a gps type optitrack?
Also this addition relies on you choosing ahrs int_cmpl_quat...

@bartslinger
Copy link
Contributor Author

It's only used in TUDELFT airframes. You are not required to use ahrs_int_cmpl_quat, but in case you do, the default is already set.
If you really want to go for gps type optitrack, I suggest to rename everything from datalink to optitrack.

@flixr
Copy link
Member

flixr commented Jun 11, 2016

I'm not in favour of renaming datalink to optitrack...
And just because the only airframes using gps datalink in the repository are from TU Delft, it doesn't mean that nobody else is using that... and it is really more generic than just for optitrack.

@bartslinger
Copy link
Contributor Author

So you suggest to duplicate the entire module, with only this tiny difference?

@flixr
Copy link
Member

flixr commented Jun 11, 2016

Basically I'm wondering if it makes sense to set this default for "all gps datalink users".
And maybe it would be more clear to create a gps_optitrack.makefile, which could be as simple as:

include $(CFG_ROTORCRAFT)/gps_datalink.makefile
# Always zero to get heading update
ap.CFLAGS += -DAHRS_HEADING_UPDATE_GPS_MIN_SPEED=0

(or later a module like in #1625)

But maybe it's not worth it...

@flixr
Copy link
Member

flixr commented Jun 13, 2016

@gautierhattenberger what do you think is the nicer approach?

@gautierhattenberger
Copy link
Member

@flixr I think your option is the best

@flixr flixr merged commit 5205c1c into paparazzi:master Jun 14, 2016
@bartslinger bartslinger deleted the gps_datalink_min_speed branch June 14, 2016 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants