From c02e5a662b31c00a8e2692290505b5082e4586fc Mon Sep 17 00:00:00 2001 From: HyungKyu Song Date: Thu, 14 Feb 2013 22:08:18 +0900 Subject: [PATCH] Tizen 2.0 Release --- AUTHORS | 13 ++- debian/changelog | 108 ++++++++----------------- debian/control | 4 +- debian/copyright | 20 ----- include/accel_sim_filter.h | 4 +- packaging/sf-plugin-filter-accel-emul.manifest | 5 ++ packaging/sf-plugin-filter-accel-emul.spec | 46 +++++++++++ src/accel_sim_filter.cpp | 11 ++- 8 files changed, 104 insertions(+), 107 deletions(-) create mode 100644 packaging/sf-plugin-filter-accel-emul.manifest create mode 100644 packaging/sf-plugin-filter-accel-emul.spec diff --git a/AUTHORS b/AUTHORS index 8acdf13..1722483 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,12 @@ -DongKyun Yun -Sungmin Ha +YeongKyoon Lee +DaiYoung Kim +SeokYeon Hwang +SangJin Kim +KiTae Kim +JinHyung Jo +SungMin Ha +MunKyu Im +JiHye Kim +GiWoong Kim +SooYoung Ha HyunGoo Kang diff --git a/debian/changelog b/debian/changelog index aba4490..6c983f5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,98 +1,54 @@ -sf-plugin-filter-accel-emul (0.2.2) unstable; urgency=low - - * modified for build only i386 - - -- Sungmin Ha Sat, 18 Feb 2012 13:06:52 +0900 -sf-plugin-filter-accel-emul (0.2.1) unstable; urgency=low - - -- Sungmin Ha Fri, 10 Feb 2012 14:00:00 +0900 - -sf-plugin-filter-accel-sim (0.1.2-3) unstable; urgency=low - - * does not check target type anymore - * Git:165.213.180.234:/slp/pkgs/s/sf-plugin-filter-accel-sim - * Tag:sf-plugin-filter-accel-sim_0.1.2-3 - - -- Yong-sul Oh Tue, 21 Dec 2010 22:12:35 +0900 - -sf-plugin-filter-bma023 (0.1.2-2) unstable; urgency=low - - * some prevent-checking-bug fix (CID 14020 , 14019) - * Git:165.213.180.234:/git/slp/pkgs/sf-plugin-filter-bma023 - * Tag:sf-plugin-filter-bma023_0.1.2-2 - - -- Yong-sul Oh Wed, 15 Sep 2010 16:54:52 +0900 - -sf-plugin-filter-bma023 (0.1.2-1) unstable; urgency=low - - * change get_struct_value() & get_property() - * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-filter-bma023-0 - * Tag:sf-plugin-filter-bma023_0.1.2-1 +sf-plugin-filter-accel-emul (0.2.9) unstable; urgency=low - -- Yong-sul Oh Tue, 15 Jun 2010 09:46:14 +0900 + * modified for sensor FW changed by juhyun kim + * Git: slp/pkgs/e/emulator-plugin-accel-filter + * Tag: sf-plugin-filter-accel-emul_0.2.9 -sf-plugin-filter-bma023 (0.1.1-1) unstable; urgency=low + -- Sungmin Ha Mon, 30 Jul 2012 15:52:41 +0900 - * change for new libslp-sensor APIs - * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-filter-bma023-0 - * Tag:sf-plugin-filter-bma023_0.1.1-1 +sf-plugin-filter-accel-emul (0.2.8) unstable; urgency=low - -- Yong-sul Oh Mon, 31 May 2010 01:05:26 +0900 + * tag changed for rejected SR + * Git: slp/pkgs/e/emulator-plugin-accel-filter + * Tag: sf-plugin-filter-accel-emul_0.2.8 -sf-plugin-filter-bma023 (0.0.4-2) unstable; urgency=low + -- Sungmin Ha Fri, 20 Jul 2012 15:40:51 +0900 - * DAC rule changed - * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-filter-bma023-0 - * Tag:sf-plugin-filter-bma023_0.0.4-2 +sf-plugin-filter-accel-emul (0.2.7) unstable; urgency=low - -- Yong-sul Oh Mon, 10 May 2010 17:51:36 +0900 + * modified for OBS SR + * Git: slp/pkgs/e/emulator-plugin-accel-filter + * Tag: sf-plugin-filter-accel-emul_0.2.7 -sf-plugin-filter-bma023 (0.0.4-1) unstable; urgency=low + -- Sungmin Ha Thu, 19 Jul 2012 21:36:51 +0900 - * add {pkg_name}.postinst.in for permission control & add free() codes when it's class constructor returned with error - * Git:165.213.180.234:/git/slp2.0/slp2.0-pkgs/sf-plugin-filter-bma023-0 - * Tag:sf-plugin-filter-bma023_0.0.4-1 +sf-plugin-filter-accel-emul (0.2.5) unstable; urgency=low - -- Yong-sul Oh Mon, 19 Apr 2010 21:44:15 +0900 + * modified for OBS SR + * Git: slp/pkgs/e/emulator-plugin-accel-filter + * Tag: sf-plugin-filter-accel-emul_0.2.5 -sf-plugin-filter-bma023 (0.0.3-1) unstable; urgency=low + -- Sungmin Ha Thu, 19 Jul 2012 17:36:51 +0900 - * add real-device checking routine (return NULL when a real-device does not exist) - -- Yong-sul Oh Mon, 29 Mar 2010 11:49:52 +0900 +sf-plugin-filter-accel-emul (0.2.3) unstable; urgency=low -sf-plugin-filter-bma023 (0.0.2-2) unstable; urgency=low + * modified for united acceleration value between eventinjector and emulator + * Git: slp/pkgs/e/emulator-plugin-accel-filter + * Tag: sf-plugin-filter-accel-emul_0.2.3 - * toolchain upgrade + -- Sungmin Ha Wed, 18 Jul 2012 18:50:51 +0900 - -- Yong-sul Oh Thu, 25 Mar 2010 17:05:33 +0900 - -sf-plugin-filter-bma023 (0.0.2-1) unstable; urgency=low - - * double-execute updating bug-fix - - -- Yong-sul Oh Fri, 19 Mar 2010 14:26:46 +0900 - -sf-plugin-filter-bma023 (0.0.1-4) unstable; urgency=low - - * remove assert - - -- Yong-sul Oh Mon, 08 Feb 2010 12:09:04 +0900 - -sf-plugin-filter-bma023 (0.0.1-3) unstable; urgency=low - - * change dependency (does not use libslp-ipc) - - -- Yong-sul Oh Thu, 21 Jan 2010 19:48:24 +0900 - -sf-plugin-filter-bma023 (0.0.1-2) unstable; urgency=low +sf-plugin-filter-accel-emul (0.2.2) unstable; urgency=low - * remove debug messages + * Update changelog version. + * Git: slp/pkgs/e/emulator-plugin-accel-filter + * Tag: sf-plugin-filter-accel-emul_0.2.2 - -- Yong-sul Oh Mon, 11 Jan 2010 19:35:17 +0900 + -- Kitae kim Thu, 27 Mar 2012 20:00:00 +0900 -sf-plugin-filter-bma023 (0.0.1-1) unstable; urgency=low +sf-plugin-filter-accel-emul (0.2.1) unstable; urgency=low * Initial Release. - -- Yong-sul Oh Mon, 21 Dec 2009 15:29:52 +0900 + -- Sungmin Ha Thu, 15 Mar 2012 17:00:00 +0900 diff --git a/debian/control b/debian/control index faaab54..b24ad6c 100644 --- a/debian/control +++ b/debian/control @@ -1,9 +1,9 @@ Source: sf-plugin-filter-accel-emul Section: misc Priority: extra -Maintainer: Sungmin ha +Maintainer:Sungmin ha ,Jihye Kim ,Yeongkyoon Lee Build-Depends: libsf-common-dev -Standards-Version: 0.2.1 +Standards-Version: 0.2.9 Package: sf-plugin-filter-accel-emul Section: misc diff --git a/debian/copyright b/debian/copyright index ce0fd88..8b13789 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,21 +1 @@ -This is $PACKAGE_NAME, written and maintained by $NAME <$EMAIL> -on Fri, 13 Nov 2009 14:08:22 +0900. -The original source can always be found at: - ftp://slp.samsung.net/dists/unstable/main/source/ - -Copyright Holder: $NAME - -License: - samsung - -/* - * Copyright (c) 2008 Samsung Electronics, Inc. - * All rights reserved. - * - * This software is a confidential and proprietary information - * of Samsung Electronics, Inc. ("Confidential Information"). You - * shall not disclose such Confidential Information and shall use - * it only in accordance with the terms of the license agreement - * you entered into with Samsung Electronics. - */ diff --git a/include/accel_sim_filter.h b/include/accel_sim_filter.h index a08056e..ac54798 100644 --- a/include/accel_sim_filter.h +++ b/include/accel_sim_filter.h @@ -3,7 +3,9 @@ * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: Sungmin Ha + * Contact: + * SooYoung Ha + * Sungmin Ha * * This library 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 diff --git a/packaging/sf-plugin-filter-accel-emul.manifest b/packaging/sf-plugin-filter-accel-emul.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/sf-plugin-filter-accel-emul.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/sf-plugin-filter-accel-emul.spec b/packaging/sf-plugin-filter-accel-emul.spec new file mode 100644 index 0000000..8c537b4 --- /dev/null +++ b/packaging/sf-plugin-filter-accel-emul.spec @@ -0,0 +1,46 @@ +#git:/slp/pkgs/e/emulator-plugin-accel-filter +Name: sf-plugin-filter-accel-emul +Version: 0.2.10 +Release: 1 +Summary: Accel simulator filter plugin for sensor framework +Group: System Environment/Libraries +License: GNU2 +Source0: %{name}-%{version}.tar.gz +Source1001: packaging/sf-plugin-filter-accel-emul.manifest +BuildRequires: cmake +BuildRequires: pkgconfig(sf_common) + +%description + +%prep +%setup -q + +%build +export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed" + +LDFLAGS="$LDFLAGS" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} + +make + +%install +rm -rf %{buildroot} +%make_install + +%clean +make clean +rm -rf CMakeCache.txt +rm -rf CMakeFiles +rm -rf cmake_install.cmake +rm -rf Makefile +rm -rf install_manifes.txt +rm -rf *.so + +%post + +%postun + +%files +%defattr(-,root,root,-) +%{_prefix}/lib/sensor_framework/*.so* + +%changelog diff --git a/src/accel_sim_filter.cpp b/src/accel_sim_filter.cpp index 2381ec7..c61f146 100644 --- a/src/accel_sim_filter.cpp +++ b/src/accel_sim_filter.cpp @@ -3,7 +3,8 @@ * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * - * Contact: + * Contact: + * SooYoung Ha * Sungmin Ha * DongKyun Yun * @@ -54,8 +55,6 @@ #include #include - - accel_sim_filter::accel_sim_filter() : m_sensor(NULL) , m_id(11) @@ -342,9 +341,9 @@ int accel_sim_filter::get_struct_value(unsigned int struct_type , void *struct_v return_struct_value->data_unit_idx = IDX_UNIT_METRE_PER_SECOND_SQUARED; return_struct_value->time_stamp = sensor_struct_value.time_stamp; return_struct_value->values_num = 3; - return_struct_value->values[0] = -(sensor_struct_value.values[0] * 0.004 * (9.81)); - return_struct_value->values[1] = -(sensor_struct_value.values[1] * 0.004 * (9.81)); - return_struct_value->values[2] = -(sensor_struct_value.values[2] * 0.004 * (9.81)); + return_struct_value->values[0] = (sensor_struct_value.values[0] / 100000); + return_struct_value->values[1] = (sensor_struct_value.values[1] / 100000); + return_struct_value->values[2] = (sensor_struct_value.values[2] / 100000); DBG("accel_sim_filter , struct_value , x : %f , y : %f , z :%f\n",return_struct_value->values[0] , return_struct_value->values[1] , return_struct_value->values[2]); -- 2.7.4