gereic / GXAirCom

Multifunctional, compatible DIY aviation proximity awareness, variometer and messaging system with FANET+, FLARM and OGN support.
114 stars 36 forks source link

CustomGPS configuration with configuration over serial #133

Closed rvt closed 11 months ago

rvt commented 1 year ago

This is the code that @VirusPilot mentioned here https://github.com/gereic/GXAirCom/issues/131

What does this code do:

The reason behind $PGXCF is that the stratux community expect that Stratux to manage an attached GPS pug, SoftRF or GxAirCom device so it's configured over serial to something Stratux can use.

All changes in the source are done such that the default behaviour is the same when in non customGPS mode. However, if we 'just' make a setting to change between 1Hz and 5Hz and still apply the settings for SBAS, Galileo etc then I would think this can work for other devices, but this is hard for me to judge or test, I am open to discussion to see how both system can benefit from the changes. To clarify, when customGPS is set to false, a reset is done and the same configurations are done as before to configure the GPS. The only small difference to make the code a bit clear is that GPS is always set to 56800 baud.

There are a few things I need to test still so consider this WIP, but last week I made 2 45 minute flights to test and it works fine and my own OGN station (that will receive flarm) did detect the plane fine.

gereic commented 11 months ago

Hi rvt, Thanks for the pull-request. At the moment, I'm working on the ground-station. Also, it is summer-time (holiday, flying, ....) So please, don't worry, when it takes a little bit longer, to answer your pull-request. Also, I thought I will let you some time, because you did some more changes.

rvt commented 11 months ago

Hey,

thanks for the quick heads-up. Have a nice time flying..