GPS Tutorial: fprime-gds won't launch - dumb user error? #1119
Replies: 3 comments 5 replies
-
First off, I'd recommend looking at: https://github.com/fprime-community/gps-tutorial as this is where the new version of the code has moved. That old branch hasn't been maintained in a long time. To answer your specific questions: Next, what version of fprime-gds did you install? fprime-gds has evolved a bit and thus those old instructions are probably out of date. If you have the newest fprime-gds:
and the run the binary. Since this is more of a discussion than an issue, I am going to convert this over to the Discussions. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I believe I am running fprime-gds version 2.0.0. It would help if fprime-gds had some kind of --version or -v option, or printed out its version in the --help option. Here's what I get when typing fprime-gds --help:
I checked out and built the newer GPS tutorial from https://github.com/fprime-community/gps-tutorial. It all built OK, but still am not having any luck running it. It seems as though fprime-gds won't talk to the running GpsApp. Please note I am running them all on the same machine, not trying to talk remotely across a LAN. Here's how I am launching GDS: Here's how I am launching the GpsApp: Sending any command from the GDS Web UI (GPS commands, NO_OPS, anything at all) fails to get a response. In the console window where I'm running GDS, I see this output every time I attempt to send a command from the GDS Web UI:
The console window running the GPSApp shows hundreds of lines of startup output; everything GPS-related looks normal. The very last line of GpsApp console output is this: The GpsApp process is still clearly running. It looks to me like GDS is just not talking to GpsApp. And I'm probably doing something simple wrong. Please let me know if this additional information suggests what my mistake is. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Awesome!!!! |
Beta Was this translation helpful? Give feedback.
-
I'm able to build the GPS tutorial using the older repository ("gps-application" branch) here:
https://github.com/LeStarch/fprime/tree/gps-application
However, the instructions to actually run the demo fail for me. The first step is to launch fprime-gds as follows:
fprime-gds -d . -n
This gives me a usage statement, and this error:
fprime-gds: error: unrecognized arguments: -d .
The GpsApp itself does actually start, and I see console log output indicating that it successfully opened /dev/ttyACM0, but only if I launch it as superuser, i.e.
sudo bin/Linux/GpsApp -a 127.0.0.1 -p 50000 -d /dev/ttyACM0
I am building and running everything on a linux host computer - I'm not yet trying to run GpsApp on a separate computer from the machine running fprime-gds.
I understand that this GpsApp tutorial is several years out of date with the most current F-Prime distribution - but I am building and running everything from LeStarch's older repository (as mentioned above). So I'd think this should work.
Is there a dumb newbie mistake that I'm making?
Beta Was this translation helpful? Give feedback.
All reactions