当前位置:主页 > 资料 >

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...,希望对您有所帮助,谢谢! Cross compilation In Part I, I had to patch qtmultimed

本文为去找网小编(www.7zhao.net)为您推荐的My Own Car System, Rear Camera, Offline Maps & Routing, Map Matching with Go on Raspberry P...,希望对您有所帮助,谢谢!

去找(www.7zhao.net欢迎您



Cross compilation

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.

本文来自去找www.7zhao.net

QML Development

Since most of the application is in , I’ve used the c++ main.cpp launcher as long as possible for the development.

www.7zhao.net

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 .

去找(www.7zhao.net欢迎您

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.

www.7zhao.net

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.

copyright www.7zhao.net

Experimenting with another touch screen

I’m using a less performant but smaller 800x480

欢迎访问www.7zhao.net

This touchscreen is handled as a one button mouse. 去找(www.7zhao.net欢迎您

It can be calibrate using ts_calibrate command.

去找(www.7zhao.net欢迎您

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 

www.7zhao.net

GPS

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

POIs

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.

内容来自www.7zhao.net

Night Map

I’m a huge fan of the , I’ve made a style for the map you can find it

欢迎访问www.7zhao.net

www.7zhao.net

Speeding up boot

systemctl mask systemd-udev-settle.service
systemctl mask lvm2-activation-net.service
systemctl mask lvm2-monitor.service 

copyright www.7zhao.net

Status

The project is far from finished and not ready for everybody but it’s fun to play with.

本文来自去找www.7zhao.net

I’ve , feel free to contribute. www.7zhao.net

内容来自www.7zhao.net


本文原文地址:https://blog.nobugware.com/post/2018/my_own_car_system_raspberry_pi_offline_mapping_map_matching_places_part2/

以上为My Own Car System, Rear Camera, Offline Maps & Routing, Map Matching with Go on Raspberry P...文章的全部内容,若您也有好的文章,欢迎与我们分享! 本文来自去找www.7zhao.net

Copyright ©2008-2017去找网版权所有   皖ICP备12002049号-2 皖公网安备 34088102000435号   关于我们|联系我们| 免责声明|友情链接|网站地图|手机版