Comments (13)
Sorry for the trouble. I'm not a Linux person, and the code was only tested on the Windows. You can find the source code for the "khbit" and "getch" equivalents for Linux on the net.
from bladegps.
@nzkarit does this help at all? https://sourceforge.net/projects/linux-conioh/ or this http://stackoverflow.com/questions/29335758/using-kbhit-and-getch-on-linux
from bladegps.
I've forked this repo and got it compiling and running on Linux with only a few tweaks, mostly just using ncurses for getch (from ncurses-dev) and adding a little khbit function, plus a small change to the Makefile to link to the ncurses lib.
I haven't coded in C for many years now, so there's probably some improvements that can be made to whatever I do.
I'm going to clean it up a bit this weekend and see if osqzss wants to pull it, but if you're interested in playing with it now it's available here:
https://github.com/keith-citrenbaum/bladeGPS
I'm going to also try to get it cycling on OS X as well this weekend.
from bladegps.
@keith-citrenbaum there seems to be an issue with your code while using the interactive mode. No key can be pressed, I can't even exit the program using Ctrl+C.
from bladegps.
Ack! You're right @Robert-steve. I just tested it with the static mode, not interactive. I'll take a look at it this evening.
from bladegps.
I think that it would be better to use getchar() instead of getch(). I will test and give some feedback.
from bladegps.
Anyone ever able to compile this in Linux with functional interactive mode? I tried keith-citrenbaum's code however I continued to run into ncurses errors. I also tried to run the windows complied version in wine (with ubuntu) and couldn't get it to initialize the bladeRF. I think wine can work, but I'd rather find a way to run this natively in linux if possible, thank you.
from bladegps.
Try to build from the latest source. It's not working quite right but can be some help. I couldn't figure out the way to clear the STDIN buffer after reading a single character with getchar().
from bladegps.
Indeed this works thank you very much!
from bladegps.
I have added a little more touch. It works much better.
from bladegps.
I just compiled it on raspbian and got some warnings: tmax.mm, hh, etc "may be used uninitialized in this function" However it appears to run fine. I couldn't get a fix but that could have been because I was lazy and used the 2 year old brdc file in the directory as opposed to grabbing a new one and setting an appropriate time. (I get some live sky leakage where I'm at.)
I have been able to get a fix using raspbian with gps-sdr-sim and bladerf, so it definitely works with the pi. Anyway thanks again.
from bladegps.
gpssim.c uses conio.h, which from my googling is Windows only. When you run make on linux you get the following error:
user@ubuntu:~/bladeGPS$ make gcc -O3 -Wall -I../bladeRF/host/libraries/libbladeRF/include -c -o gpssim.o gpssim.c gpssim.c:19:19: fatal error: conio.h: No such file or directory compilation terminated. <builtin>: recipe for target 'gpssim.o' failed make: *** [gpssim.o] Error 1
Hello, I have problem with installation:
cd ../../../bladeGPS: no directiory
which folder should I navigate?
from bladegps.
I can't compile a program containing conio.h
I use linux mint ulyana
I wrote the code in visual studio code.
Can any one help me?
from bladegps.
Related Issues (19)
- Antenna HOT 4
- Pause dynamic path HOT 2
- Rinex file reload HOT 2
- Changing the date in the BRDC file HOT 14
- User Motion file option not working HOT 2
- Why max duration of 86400? HOT 1
- Failed to set TX frequency HOT 7
- Almanac Week Rollover HOT 1
- undefined bladerf_channel HOT 1
- Make: nothing to be done for 'all'
- somthing wrong with bladeRF 2.0 micro xA4 TX HOT 1
- BladeRF A5 Periodically Stops Broadcasting
- Could I use it as GPS transmitter that keep changing values?
- Support for HackRF?
- deleted
- great!hope make a version for hackrf and can run on linux HOT 3
- Could some additional instructions be provided? HOT 4
- VCTCXO taming HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bladegps.