My Own Car System, Rear Camera, Offline Maps & Routi
栏目分类：资料 发布日期：2018-08-02 浏览次数：次
本文为去找网小编(www.7zhao.net)为您推荐的My Own Car System, Rear Camera, Offline Maps & Routing, Map Matching with Go on Raspberry P...，希望对您有所帮助，谢谢！
In Part I, I had to patch qtmultimedia for the camera to work, but Qt compilation is ressource hungry, same goes for the osrm compilation, the memory of the Raspberry Pi is too small. 去找(www.7zhao.net欢迎您
I had to to set up a in my case for armv7h.
Since most of the application is in , I’ve used the c++
main.cpp launcher as long as possible for the development.
At the moment I needed to inject data from the outside world (like the GPS location) to QML via Qt, so I switched to Go using .
The Go bindings project is young but the main author is really active fixing issues. 欢迎访问www.7zhao.net
It makes desktop applications easy to code without the assle of C++ (at least for me). www.7zhao.net
About QML, by separating the logic and forms using
.qml.ui you still can edit your views with : 本文来自去找www.7zhao.net
That’s just the narrative, truth is Creator is really buggy and I edited the ui files by hand most of the time. copyright www.7zhao.net
I worked with Interface Builder on iOS for years, Qt is painful, lack of decent visual editor for QML really hurts.
Serving the map without internet access
In Part I, we talked about OpenMapTiles and OpenGL rendering, but I needed a web server capable of reading MBTiles format and serving the necessary assets for the map to be rendered. www.7zhao.net
I’ve created in Go for that purpose so can render the map without Internet access, it will also map match the positions in the future.
Experimenting with another touch screen
I’m using a less performant but smaller 800x480
This touchscreen is handled as a one button mouse. 去找(www.7zhao.net欢迎您
It can be calibrate using
Then in your start env tell Qt to use tslib. copyright www.7zhao.net
TSLIB_TSDEVICE=/dev/input/event0 QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0 QT_QPA_FB_TSLIB=1
Like I said inpart I, the Linux gps daemons are using obscure and over complicated protocols so to write my own gps daemon in Go using a gRPC stream interface. You can . copyright www.7zhao.net
I’m also not satisfied with the map matching of OSRM for real time display, I may rewrite one using . 欢迎访问www.7zhao.net
I’ve started POIs lookups with full text search and geo proximity using by exposing an API compatible with the OSM API so it can be used directly by QML Locations.
I’m a huge fan of the , I’ve made a style for the map you can find it
Speeding up boot
systemctl mask systemd-udev-settle.service systemctl mask lvm2-activation-net.service systemctl mask lvm2-monitor.service
The project is far from finished and not ready for everybody but it’s fun to play with.
I’ve , feel free to contribute. www.7zhao.net
以上为My Own Car System, Rear Camera, Offline Maps & Routing, Map Matching with Go on Raspberry P...文章的全部内容，若您也有好的文章，欢迎与我们分享！ 本文来自去找www.7zhao.net