Adding a react-native GUI on RtkGps
- Set up your local developer environment for react-native
git submodule init && git submodule update
yarn install
- Open the Android sdk manager and install
- NDK
- Google Play services
- Add your google maps api key in the AndroidManifest
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="<YOUR_KEY_HERE"/>
See this for more information.
- Plug in your android device
- Open two terminals and enter
yarn start
in the first terminalyarn adb-reverse && yarn android
in the second terminal
- Running starts the location service
- Display paths shows/hides the loaded path and driven path
- Load Path opens a window to load a path from a .json file to display on the map the file needs to have the following structure:
[
{ "longitude": -122.081949, "latitude": -90 },
{ "longitude": -123.081949, "latitude": -91 },
...
]
- Clear paths deletes the loaded and driven path
- Settings Opens the legacy settings page (see below)
Here you can see a detailed status and configure the location service.
The upper half displays a detailed status of the positioning service (e.g. number of satellites). Once it displays FLOAT it calculated an accurate position.
In the top right corner you can see some status indicators:
- input rover
- input base
- input correction
- processing status
- output solution 1
- output solution 2
The lower half displays the satellites of the rover and of the base and their signal strength.
(In the settings click on input streams.)
Here you can set the input configuration for the rover. The picture shows the settings for a Navilock receiver via usb. (Antenna, commands and receiver option stay unchanged.)
You can use free NTRIP casters (e.g. Rtk2go)
Simply change the stream settings and format to your desired NTRIP stream. (everything else stays unchanged)
Change the processing options to your desired needs. For the Navilock receiver the displayed settings are chosen. (Only need to set Positioning mode, frequencies, navigation system)
If you want to write the calculated position to a file, set your settings here. I recommend enabling both, solution 1 and 2, since for me only one of both worked. At the beginning of your recording also check the status indicators (see status chapter above) to see if it really writes something to the drive.