Skip to content

Instantly share code, notes, and snippets.

@modjo756
modjo756 / neosensorsregisters.h
Created July 7, 2016 07:25
Qt class to use neo sensors
#ifndef NEOSENSORSREGISTERS_H
#define NEOSENSORSREGISTERS_H
//This file contains all the registers used by fxos8700cq and fxas2100c"""
#define GYRO 0x01
#define ACC 0x02
#define MAG 0x03
#define I2C_AM_ADDRESS 0x1e // I2C accelerometer/magnetometer address
#include "qcan.h"
#include <QDebug>
#include <QProcess>
QCan::QCan(QObject *parent) : QObject(parent), m_canDevice(Q_NULLPTR)
{
m_sCan=structCan();
}
QCan::~QCan()
@modjo756
modjo756 / qcan.h
Last active July 7, 2016 07:10
class for use can on neo boards
#ifndef QCAN_H
#define QCAN_H
#include <QObject>
#include <QtSerialBus>
typedef struct //CAN message struct
{
quint16 i_length; // --> size of packet
require qt5.inc
require qt5-git.inc
LICENSE = "GFDL-1.3 & BSD & LGPL-3.0"
LIC_FILES_CHKSUM = " \
file://LICENSE.LGPLv3;md5=8ba7f2099d17d636d5fcc8303bb17587 \
file://LICENSE.GPLv3;md5=40f9bf30e783ddc201497165dfb32afb \
file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
"
require qt5.inc
require qt5-git.inc
# There are no LGPLv3-only licensed files in this component.
# There are no GPLv2 licensed files in this component.
LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
LIC_FILES_CHKSUM = " \
file://LICENSE.LGPLv3;md5=b8c75190712063cde04e1f41b6fdad98 \
file://LICENSE.GPLv3;md5=40f9bf30e783ddc201497165dfb32afb \
file://LICENSE.FDL;md5=f70ee9a6c44ae8917586fea34dff0ab5 \
MACHINE ??= 'udooneo'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
U-Boot SPL 2015.04 (Mar 17 2016 - 17:21:31)
Setting 1024MB RAM calibration data
port 1
@modjo756
modjo756 / gist:6625925
Created September 19, 2013 16:23
pcduino xf86 config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by xf86-video-sunxifb configure 0.3.1, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/usr
## --------- ##
## Platform. ##