Code Monkey home page Code Monkey logo

crossdump's Introduction

CrossDump

A task managing navigation app built with Qt. The project has been developed mainly to run on CrossControl's display computers.

Techniques used in the project have been documented in DOCS.md (text in Swedish).

Offline maps

An offline map of Uppsala has been generated and is included in the repo under offline-maps/. Below are instructions for installing the offline map on CrossControl's displays and on Linux.

View DOCS.md for further documentation on creating and using offline maps.

Install offline maps on CrossControl displays

Copy the offline map to the display's cache directory via SSH:

scp offline-maps/uppsala.db [email protected]:~
ssh [email protected]
...
sudo su
mv uppsala.db /home/root/.cache/QtLocation/5.8/tiles/mapboxgl/mapboxgl.db

Install offline maps on Linux

Copy the offline map to the local cache directory:

cp offline-maps/uppsala.db ~/.cache/QtLocation/5.8/tiles/mapboxgl/mapboxgl.db

Connect to a CrossControl display via Qt Creator

Go to Tools -> Options -> Devices -> Devices

Set "Host name" equal to the IP address of the display.

Test the connection with the "Test" button and finally click OK.

Running on CrossControl displays

Select compile target matching the display, for example CCpilot VS.

Add -platform wayland as "command line arguments". Optionally use -platform eglfs for drawing directly to the framebuffer. For the eglfs setting you also need to SSH into the display and run /etc/init.d/weston stop.

Under Run Environment:

  • Set QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS to /dev/input/touchscreen0
  • Set XDG_RUNTIME_DIR to /run/user/root

Profiling the app

Enable an FPS counter by adding the following code to the bottom of main.qml, which will print information to the console:

import com.crossdump.fpscounter 1.0

FPSCounter {
    id: fpsCounter
    width: 100
    height: 100
}
Text {
    text: fpsCounter.fps
}

License

Copyright © 2020 Anton Bergåker, Carl Enlund, Astrid Nord Olsson, Arvid Sandin

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.