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

Add receiver lat/lon/altitude to ChaseMapper #412

Open
mpkleine opened this issue Dec 13, 2023 · 5 comments
Open

Add receiver lat/lon/altitude to ChaseMapper #412

mpkleine opened this issue Dec 13, 2023 · 5 comments

Comments

@mpkleine
Copy link

Would it be possible to add the lat/lon/altitude fields of the receiver to the ChaseMapper JSON output?
The receiver has a GPS receiver and the data should be available on each balloon transmission sent via ChaseMapper.

This would provide the appropriate data to mobile/portable external tracking systems and allow for easy distance/direction calculations between the receiver and the balloon.

@Szetya
Copy link

Szetya commented Dec 14, 2023

The chasemapper has its own GPS receiver or receives the coordinates of the chaser from the gpsd or on the 55672 port in a separate packet. The balloon telemetry does not include the chaser coordinates (which is why it won't work) Try using the rdzwx-go mobile app it shows distance and direction. https://github.com/dl9rdz/rdzwx-go

@mpkleine
Copy link
Author

OK, thanks, since the receiver has its GPS location I was looking for a way to get it out of the receiver. -- Thanks

@Szetya
Copy link

Szetya commented Dec 14, 2023

Another possible solution
Make HTTP requests to http://rdzsonde-local/live.json (or IP address). The json contains all the useful information, including the GPS or fixed coordinates of the host. I know this works the other way round as you would like.

@hr-ru
Copy link
Contributor

hr-ru commented Dec 14, 2023

Chasemapper telemetry can include chase car positions, so the TTGO position could be included there.

But if it is just about getting the position to some other custom (non-chasemapper) application, there are several options, most preferred first:

  • Connect to port 14570. You get JSON data every second, which includes the GPS position
  • As mentioned above, fetch http://rdzsonde-local/live.json. Very similar data, but you have to pull periodically. For continuously getting the data, the port 14570 is the better option.
  • You could also use some of the APRS options (KISS TNC or AXUDP). You will get the GPS position you want (but other data with the limitation of APRS data)

@darksidelemm
Copy link

If you are trying to use the TTGO GPS receiver as a 'car position' input into chasemapper, then the correct format to send data out would be:

{
    'type' : 'GPS',            # Packet Type
    'latitude': lat,           # float, Decimal Degrees
    'longitude': lon,          # float, Decimal Degrees
    'altitude': alt,           # float, metres
    'speed': speed,            # float, kph
    'valid': position_valid    # boolean - True if there is GPS lock, False otherwise (probably redundant...)
}

If you configure chasemapper to use a car_source type of 'horus_udp', then this will be picked up and used for the car position.

There is an assumption made here that all telemetry data and the car are all at the same location...

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

No branches or pull requests

4 participants