aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-config-generator/tests/generated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CAN-config-generator/tests/generated.cpp')
-rw-r--r--CAN-config-generator/tests/generated.cpp197
1 files changed, 0 insertions, 197 deletions
diff --git a/CAN-config-generator/tests/generated.cpp b/CAN-config-generator/tests/generated.cpp
deleted file mode 100644
index 9768860a..00000000
--- a/CAN-config-generator/tests/generated.cpp
+++ /dev/null
@@ -1,197 +0,0 @@
-#include "application.hpp"
-#include "can/can-decoder.hpp"
-
-
-// >>>>> handlers.cpp >>>>>
-#include "can/canread.h"
-
-using openxc::can::read::publishNumericalMessage;
-
-void handleSteeringWheelMessage(CanMessage* message,
- CanSignal* signals, int signalCount, Pipeline* pipeline) {
- publishNumericalMessage("latitude", 42.0, pipeline);
-}
-
-openxc_DynamicField handleInverted(CanSignal* signal, CanSignal* signals,
- int signalCount, float value, bool* send) {
- return openxc::payload::wrapNumber(value * -1);
-}
-
-void initializeMyStuff() { }
-
-void initializeOtherStuff() { }
-
-void myLooper() {
- // this function will be called once each time through the main loop, after
- // all CAN message processing has been completed
-}
-
-// <<<<< handlers.cpp <<<<<
-
-application_t::application_t()
- : can_message_set_{0, "example", 2, 2, 7, 1, 3}
- , can_message_definition_
- {
- {
- can_message_definition_t(0, "can0", 0x128, can_message_format_t::STANDARD, frequency_clock_t(0.00000f), true),
- can_message_definition_t(0, "can0", 0x813, can_message_format_t::STANDARD, frequency_clock_t(0.00000f), true)
- }
- }
- , can_signals_
- {
- {
- {
- 0,
- 0,
- "engine_speed",
- 12,
- 8,
- 1.00000,
- 0,
- 0,
- 0,
- frequency_clock_t(15.0000f),
- true,
- false,
- {
- },
- false,
- nullptr,
- nullptr,
- false
- },
- {
- 0,
- 0,
- "GearshiftPosition",
- 41,
- 3,
- 1.00000,
- 0,
- 0,
- 0,
- frequency_clock_t(0.00000f),
- true,
- false,
- {
- {1, "FIRST"},
- {4, "FOURTH"},
- {6, "NEUTRAL"},
- {5, "REVERSE"},
- {2, "SECOND"},
- {3, "THIRD"}
- },
- false,
- nullptr,
- nullptr,
- false
- },
- {
- 0,
- 0,
- "SteeringWheelAngle",
- 52,
- 12,
- 0.153920,
- 0,
- 0,
- 0,
- frequency_clock_t(0.00000f),
- true,
- false,
- {
- },
- false,
- handleUnsignedSteeringWheelAngle,
- nullptr,
- false
- },
- {
- 0,
- 0,
- "steering_wheel_angle_error",
- 44,
- 12,
- 1.00000,
- 0,
- 0,
- 0,
- frequency_clock_t(0.00000f),
- true,
- false,
- {
- },
- false,
- ignoreDecoder,
- nullptr,
- false
- },
- {
- 0,
- 0,
- "steering_angle_sign",
- 52,
- 12,
- 1.00000,
- 0,
- 0,
- 0,
- frequency_clock_t(0.00000f),
- true,
- false,
- {
- },
- false,
- ignoreDecoder,
- nullptr,
- false
- }
- },
- {
- {
- 0,
- 1,
- "abc",
- 52,
- 12,
- 0.153920,
- 0,
- 0,
- 0,
- frequency_clock_t(0.00000f),
- true,
- false,
- {
- },
- false,
- handleUnsignedSteeringWheelAngle,
- nullptr,
- false
- },
- {
- 0,
- 1,
- "def",
- 52,
- 12,
- 1.00000,
- 0,
- 0,
- 0,
- frequency_clock_t(0.00000f),
- true,
- false,
- {
- },
- false,
- decoder_t::ignoreDecoder,
- nullptr,
- false
- }
- }
- }
- //, obd2_signals_{/*...*/}
-{
-}
-
-
not needed (my bad). Change-Id: Ie45f13c6274bae9d87b4b4df11410a6356b49dd7 Signed-off-by: Martin Kelly <mkelly@xevo.com> 2017-03-30Generate weston.ini dynamicallyRonan Le Martret3-114/+1 * remove weston-intel.ini * add new package weston-ini-conf * the list of the sections of weston.ini is described in variable flags WESTONSECTION * each section is described in variable flags WESTONSECTION * each output screen is described in agl_screen variable Bug-AGL: SPEC-477 Change-Id: I3d25ab49018e3842c916993ba8b9bcc2428d5170 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> 2017-03-30Fix parallel build issue in wayland-ivi-extensionJan-Simon Möller1-0/+4 The build might fail on a linker issue. Change-Id: If0e0895f5a4ee9f64c20c3367df021225f1510bf Bug-AGL: SPEC-508 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2017-03-27dlt-daemon: build with -fPICMartin Kelly2-0/+18 I tried turning on the Yocto security flags and hit a compilation error due to dlt-daemon's copy of gtest not compiling. Adding -fPIC fixes the issue. Change-Id: I21f81949436e553426f7d1b7e17dd39717f0cf9d Signed-off-by: Martin Kelly <mkelly@xevo.com> 2017-03-19Removed old fix for weston-ivi-shellRonan Le Martret3-57/+1 - 0001-IVI-Shell-use-primary-screen-for-resolution.patch is not use any more Bug-AGL: SPEC-471 Bug-AGL: SPEC-411 Change-Id: Id2b3eb2ebd11fe1169444d3373f501394247c909 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> 2017-03-19update wayland-ivi-extension to 1.11.0Ronan Le Martret8-283/+48 * remove patch already present in wayland-ivi-extension upstream * remove unused recipes wayland-ivi-extension 1.5.0 * wayland-ivi-extension_1.11.0.bb is a port of the recipes wayland-ivi-extension_1.10.90.bb from layer meta-ivi. * the wayland-ivi-extension_%.bbappend is the AGL part of the wayland-ivi-extension. patch -> commit id from upstream 0001-ivi-input-support-touch-and-pointer-on-subsurface.patch 183810b051a7a194bb260ff7db6c8a59ef44d18d Bug-AGL: SPEC-411 Change-Id: I0f27d00803cb5c06b9f2621918118c985a8dd9d6 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> 2017-01-26Fix bitbake QA issues for test packagesRonan5-0/+9 * fix "QA Issue: No GNU_HASH in the elf binary" Change-Id: I81990e4ef91cee156667bf2deaaa9a4e3014f4ca Signed-off-by: Ronan <ronan.lemartret@iot.bzh> 2017-01-26Remove deprecated package netpipeRonan3-272/+0 * the upstream package, of netpipe, doesn't existe anymore * site http://bitspjoule.org/netpipe is down Change-Id: I6f721d41ecbda4f83a3f0b6ff2d61373e474147b Signed-off-by: Ronan <ronan.lemartret@iot.bzh> 2017-01-18Left behind AMB parts.Romain Forlot17-1406/+1 Automotive packagegroup recipe kept, but empty. Future specific automotive packages may be added later. Change-Id: Iebfea2a0f0671c3fa3e03a5d96dd1eeb0453eaf0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> 2017-01-16Update meta-ivi-common for 'Daring Dab'Jan-Simon Möller11-59/+1 This changeset removes unused or old/stale files from the meta-ivi-common layer before the 'Daring Dab' development cycle starts. Change-Id: I3fcdf345918771c6cdfd5a0c01b792ca3d8ae3ad Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2017-01-10fix checksumRonan Le Martret1-2/+2 Change-Id: I4f0286347cd6bd56b233b6c574736beb73ca4a0f Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> 2017-01-10update pulseaudioRonan Le Martret1-0/+0 Change-Id: Ie719895b622ff69a946c8ec4c22e98a03108d38b Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> 2017-01-10remove useless bbappendRonan Le Martret1-22/+0 Change-Id: I674eff45e2900b1cded0f214caeaa2e9e0dfda00 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> 2016-12-27Update GENIVI Audio Manager to 7.4 for CES2017 demo.Toshiaki Isogai2-0/+73 Change-Id: I8661db791c60feac41814173b666710409480c7c Signed-off-by: Toshiaki Isogai <tisogai@jp.adit-jv.com> 2016-12-15Add patch : ivi input support touch and pointer on subsurfaceNaoto Yamaguchi2-0/+198 This patch is required to use SubSurface in the AGL Distro application. This patch is necessary for at least navigation application. Change-Id: I6faaafed3db52f048bc329050de290cba67a546b Signed-off-by: Naoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp> 2016-11-28packagegroup-ivi-common-core-multimedia: add pulseaudio bluetooth modulesStephane Desneux1-0/+8 When bluetooth is set in DISTRO_FEATURES, we need some bluetooth specific modules for pulseaudio. The list of packages is a part of OE's package group 'packagegroup-tools-bluetooth' which also contains extra bluetooth tools we don't want to install in the core AGL image. Bug-AGL: SPEC-293 Change-Id: I47abe11c136ce6a8fd9d58759bbf9ea1a506fd82 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> 2016-11-09FTBS: himeno - remove from packagegroup until fixedJan-Simon Möller1-1/+2 Change-Id: I62ddb3b512862301f8ff94fcec3fa9d7bbd50a93 Bug-AGL: SPEC-316 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2016-10-19Fix bug of himeno recipeNuoHan Qiao1-0/+3 The Makefile hardcods gcc as compiler, then it will be compiled into wrong format. SO remove it. Change-Id: I3ab4271d26b4e8cdd2b38aa05421a3dde002297c Signed-off-by: NuoHan Qiao <qiaonuohan@cn.fujitsu.com> 2016-10-07Fix freetype recipe to build ft2demos againJan-Simon Möller2-4/+38 This changeset fixes SPEC-261 [1] The recipe relies on ${B} = ${S} and ft2demos needs to find the right libtool. Therefore we remove the hardcoded LIBTOOL in the makefile. LIBTOOL is already set and imported through config.mk v2: replaced sed with patch [1] https://jira.automotivelinux.org/browse/SPEC-261 Change-Id: I25f472a1774b0e7922828271117e96bf254e4b59 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2016-10-05packagegroup: agl-audio-plugin ported to pulseaudio-8.0Yannick Gicquel1-3/+1 Change-Id: Ia987b1e5fa8f16faaf6b3b9e69524a793c935cf3 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh> 2016-10-03pulseaudio: add volumeramp patchsetYannick Gicquel7-16/+1267 Those patchs are a rebased version of patchset: https://lists.freedesktop.org/archives/pulseaudio-discuss/2016-August/026797.html Change-Id: I367686217a2af409c46c2aab0be62c01a058d2f1 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh> 2016-09-29Add bbappend file for available glmark2 on waylandYuta Doi1-0/+2 Add bbappend file of glmark2 for using it on wayland. If you want to use glmark2, please see the following step: 1. Add IMAGE_INSTALL_append in conf/local.conf > IMAGE_INSTALL_append = " \ > glmark2 \ > " 2. Bitbake image such as agl-demo-platform. 3. Power up the board with created image in step 2. 4. [on board] Modify /etc/xdg/weston/weston.ini for switching ivi-shell to desktop-shell > [core] > shell=ivi-shell.so ↓ > [core] > shell=desktop-shell.so 5. [on board] Restart weston.service > # systemctl restart weston.service 6. [on board] Execute glmark2 > # glmark2-es2-wayland Change-Id: I8c6c839f4a1e0099b118f33fe3aa824a6c922e8b Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp> 2016-09-01Changes for building with YP 2.1.1 'krogoth'Jan-Simon Möller19-235/+133 Notable changes: - Update poky-agl.conf for YP 2.1 krogoth - change mesa bbappend to mesa_11 - TODO: check need for gallium, or replace with DRM see SPEC-237 - remote linux-yocto_3.14 as it is no longer shipped with YP 2.1 - rtl-sdr got a fix included for its packageconfig file - update 0001-disable-when-booting-over-nfs.patch - update checksums for ft2demo - TODO: check installation of test binaries - automotive-message-broker needed a workaround in the recipe - TODO: fix package and recipe - wayland-ivi-extension fix for use of autotools _AND_ cmake at the same time: only use cmake - port pulseaudio_6.0.bbappend to pulseaudio_8.0.bbappend - TODO: check patches and forward-port - agl-audio-plugin is currently disabled until ported to pulseaudio 8.0 - gstreamer1.0_1.2.3 is only used by meta-renesas, thus move it there - update dlt-daemon to 2.15 TODO: - check values in poky-agl.conf - check mesa for needed bbappends on other boards (tested qemux86 and qemux86_64) - check pulsaudio bbappend and forward-port patches (patches disabled!) - check agl-audio-plugin and forward-port (build disabled!) - check freetype bbappend wrt. installation path of test binaries - check automotive-message-broker wrt installation routines for libraries (QA failure) - check wayland-ivi-extension build and capabilities Change-Id: I553e03cc37348cba2fc4a022820157c78bb184d3 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2016-08-16Fix use of version number in recipe to make it future-proof.Jan-Simon Möller1-1/+1 Instead of hardcoding 6.0, we can use ${PV} instead. Change-Id: I95c36058302c4f5d8dc0b8f0814d68270b17cf34 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2016-07-22Fix do_install issue for freetype-nativePhong Tran1-1/+1 The TOP_DIR is wrong in case native compile. The value of PN=freetype-native. It causes do_install error. This is error log of the issue install: cannot stat '...build/tmp/work/x86_64-linux/freetype-native/2.6-r0/ft2demos-2.6/bin/ftbench': No such file or directory (virtual:native: .../freetype_2.6.bb,do_install) failed with exit code '1' This will change to use BPN instead of PN. BPN=freetype in both native and cross compile. Tested OK with bitbake freetype freetype-native. Change-Id: I5a2b5bcc80755165ba026aedd177d03bc3f0e4a5 Signed-off-by: Phong Tran <tranmanphong@gmail.com> 2016-07-20Add PulseAudio server and systemd serviceManuel Bachmann2-0/+30 This commit adds the PulseAudio server to the image, and a related systemd service for automatic startup. This change is motivated by an Audio Routing model involving a PulseAudio plugin and a AudioManager interface, as described on: https://wiki.automotivelinux.org/ eg-ui-graphics-req-audiorouting . PulseAudio server is launched in user mode. ("paplay <file>.wav" may verify the functionality) Change-Id: I12e2bfb2af5494e530e29bda77b0d88999cf7b4b Signed-off-by: Manuel Bachmann <mbc@iot.bzh> 2016-07-19Change SRC_URI of wayland-ivi-extension to githubJan-Simon Möller1-1/+1 git.projects.genivi.org seems down for git:// clones, thus replace with github. v2: fix typo Change-Id: I40fa4d2c7c680685b7e68f748d9e087518ee857d Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2016-07-15Add agl-audio-plugin (PulseAudio Routing plugin)Manuel Bachmann1-0/+1 agl-audio-plugin is a stripped-down version of the former Tizen IVI Audio Routing plugin (also known as "module- murphy-ivi"). This is stripped down is the sense that: - it does not require Murphy anymore; - it does not implement the most complex use cases anymore; - it is able to work standalone by using a JSON configuration file or its own embedded configuration. It still has the basic structure needed to interconnect an external policy engine (such as GENIVI AudioManager). Change-Id: I133916cada5cc928187f2aef6448fdaf7c03c3c6 Signed-off-by: Manuel Bachmann <mbc@iot.bzh> 2016-07-15Add IVI-specific PulseAudio patches and development filesManuel Bachmann12-0/+8768 This is a stripped-down port of Tizen IVI PulseAudio 5.0 patches to AGL PulseAudio 6.0. These patches mainly: - provide a new "pulseaudio-module-dev" package, including headers and libraries for out-of-tree module development; - add generic helper functions; - add a helper "libvolume" library; - add helper functions for an efficient "volume ramp up/down" feature, so that a module does not need to track volume changes' timing and state in realtime. These patches are needed for the PulseAudio Routing Module described on: https://wiki.automotivelinux.org/ eg-ui-graphics-req-audiorouting (which is itself a stripped -down version of the Tizen IVI Audio Routing module). Change-Id: Ib826f3106b91ffdef639c2719a580373f84449c7 Signed-off-by: Manuel Bachmann <mbc@iot.bzh> 2016-07-08Enable ivi-input-controller.so in meta-aglTadao Tanikawa1-1/+2 This enable to deliver key events to applications running on ivi-shell. It requires ivi-input-controller.so and control keyboard focus explicitly. For that, wayland-ivi-extension should be configured with '-DWITH_ILM_INPUT=1' and built. Change-Id: Id1b521d789478ff31ac80460862fbe1fd09a93ff Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> 2016-06-20tests: Add two Chromiums tests to packagegroup-ivi-common-test.bbYannick Gicquel1-0/+2 Change-Id: I764b8570398aef418834f48392e0390909937b08 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh> 2016-06-19meta-ivi-common: amend freetype recipe to package freetype-demosStephane Desneux2-0/+60 Binaries present in ft2demos source project are packaged in freetype-demos to satisfy JTA dependencies (job Functional.ft2demos) Change-Id: I0f2088c1d1e8586617f66292de652f3783f3f00f Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> 2016-06-19meta-ivi-common: add recipe for fsfuzzer (JTA:Functional.fsfuzz)Stephane Desneux2-0/+29 fsfuzzer binary is needed in JTA functional test 'fsfuzz' Change-Id: Icb82fb82b8785d8ae2c784934fa9e32e2b520ef6 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> 2016-06-19tests: Add new recipe for linus_stressYannick Gicquel1-0/+22 Change-Id: Ia8661e982daa09da3e85287e8323690c1b079322 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh> 2016-06-19tests: Add new recipe for ipv6connectYannick Gicquel1-0/+22 Change-Id: Ib1f68f6680452d194e4cb3ac642774fa58acf3a9 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh> 2016-06-19meta-ivi-common: amend fontconfig recipe to package fontconfig-testStephane Desneux1-0/+17 Tests present in fontconfig sources are packaged in fontconfig-test*.rpm to satisfy JTA dependencies (job Functional.fontconfig) Change-Id: I0aed6f9718762995795d107e67bb7553b246232c Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> 2016-06-19meta-ivi-common: add recipe for 'dung' scripts required by some JTA testsStephane Desneux1-0/+18 The following tests use dung-3.4.25-m2 scripts: * Functional.arch_timer * Functional.scifab * Functional.cmt * Functional.sdhi_0 Change-Id: Ibcd4267b6b2025e0e615fcb6af2bbaa3b2011712 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> 2016-06-19meta-ivi-common: add recipe for aiostress (JTA:Functional.aiostress)Stephane Desneux1-0/+24 aio-stress binary is needed in JTA functional test 'aiostress' upstream version found here: https://oss.oracle.com/~mason/aio-stress/ NB: the version referenced in JTA is 0.21 but the new recipe points to 0.22. Change-Id: I382ca2ea843f2367010677c463df2a1b9d02aba7 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> 2016-05-22Add lmbench to packagegroup for QAJan-Simon Möller1-0/+1 lmbench v3 is available in OE. Change-Id: I3754a395e29b21dfe7bfd60f8544e093a218f139 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> 2016-05-06Provide updated Wayland-IVI-Extension.Andre Moreira Magalhaes (andrunko)1-0/+24 This change adds support for Wayland IVI Extension 1.9.1 (latest stable release). Wayland-IVI-Extension provides an additional shell plugin for IVI-Shell, along with command-line tools and demonstration applications. More info at http://projects.genivi.org/wayland-ivi-extension. Change-Id: Icd193af70b226745b9316d18dc239909703d7bda Signed-off-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> 2016-05-06Add support for GENIVI Audio Manager.Andre Moreira Magalhaes (andrunko)3-0/+83 More info at http://projects.genivi.org/audio-manager/. Change-Id: I557a6f69e80e5d3a784d89dbb0584c925ce47545 Signed-off-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> 2016-05-04Add support for GENIVI Diagnostic Log and Trace (DLT).Andre Moreira Magalhaes (andrunko)5-0/+290 More info at http://projects.genivi.org/diagnostic-log-trace/. Change-Id: I2eab825c9aba9d56795d89b1fab84151e570c423 Signed-off-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> 2016-05-01Add package linpack to packagegroup-ivi-common-test.bbYannick Gicquel1-0/+1 Change-Id: I9ba3edae6a989f599564064788184bcb16e27901 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh> 2016-05-01Add new recipe for linpackYannick Gicquel1-0/+21 linpack benchmark license is BSD, from lapack-forum: http://icl.cs.utk.edu/lapack-forum/archives/lapack/msg00301.html Change-Id: I7093f98102e9cb3c61aad3fa9c8ced8693ff67a1 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh> 2016-05-01Update wayland-fits for Weston 1.9.0 support (SPEC-174)Manuel Bachmann1-0/+2 wayland-fits did not compile anymore as we upgraded to Weston 1.9.0, which changes some internal macros, structures and function calls. Let us update to the latest upstream version, which has fixes for this issue. This is a backport of the following meta-oe patch: http://lists.openembedded.org/pipermail/openembedded-devel/ 2016-April/107176.html and fixes the following issue: https://jira.automotivelinux.org/browse/SPEC-174 Change-Id: Ic1c8676b2a5e8bb2c6f8da968a5cb27334bd7086 Signed-off-by: Manuel Bachmann <mbc@iot.bzh>