richonguzman / LoRa_APRS_iGate

LoRa APRS iGATE for ESP32 Based Board with Rx + Tx capabilities
MIT License
239 stars 72 forks source link

Use GPS for iGate coordinates #31

Closed mweyland closed 3 weeks ago

mweyland commented 9 months ago

Hello

I am wondering whether this software is able to use a GPS module to determine its position instead of hard-coding the lat/long in the config json. This seems to be a feature in another implementation by setting use_gps but I am not sure how that codebase relates to this project.

Having this feature would enable people to use the iGate with a hotspot, e.g. when on holidays or when visiting random places, but I am not sure what would happen when the GPS module fails to report the current coordinates...

richonguzman commented 9 months ago

Hi,

this is a great idea and I will come back to do this very soon as the igate is getting big upgrade in few days, then I can add this idea ;)

mweyland commented 9 months ago

OK this is great, thank you! (Also thank you for adopting my air plane icon in the APRS tracker project)

drtechga commented 9 months ago

I second this idea

SQ2CPA commented 9 months ago

That's unfortunately not good idea because then the IGate or Digi will move on aprs.fi map because even if the station doesn't move, the GPS "floats" and sometimes even a long distance

mweyland commented 8 months ago

Thank you for pointing this out. Indeed, there are circumstances where this would not work as intended. I guess if somebody is on the move (e.g. an iGate on a car) then the iGate should indeed be moving on the aprs.fi map. In that case, the feature would make sense(?) but this is not the use case I described originally.

If the iGate is stationary during operation, but its position is ultimately not fixed, then SQ2CPA has a good point. How about this: Could there be a menu entry where the GPS coordinates can be polled from the GPS module and used from then on? That would address these concerns while retaining the possibility to change the reported position without flashing...

Lastly, are valid GPS coordinates required for the iGate functionality? The project documentation is very clear on that (you need to enter coordinates) but maybe this is a limitation of the code rather than the protocol?

Edit: Alternatively, there could be a mode where the iGate determines its position on power-up and uses that until reboot. That would also address the concerns raised by SQ2CPA.

richonguzman commented 8 months ago

So the idea would be:

add a process to get a GPS fix for a "new" static GPS position for the GPS (different from the hardcoded gps points in config json file) , right?

mweyland commented 8 months ago

Yes that would be nice, and I think it makes sense to do this in a sensible way, i.e. run this process at startup or upon user request, but not continuously. Otherwise the iGate icon would move around on the aprs.fi map to some extent, which is undesired.

drtechga commented 8 months ago

I currently use peters Igate as it does have gps. I'm using it as a mobile igate. But like this igate firmware better

richonguzman commented 3 weeks ago

GPS in iGate is added in release V2.1