]> rtime.felk.cvut.cz Git - orte.git/log
orte.git
9 years agoJORTE: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings android
Martin Vajnar [Mon, 29 Sep 2014 19:10:59 +0000 (21:10 +0200)]
JORTE: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings

Ignore int-to-pointer and pointer-to-int compiler conversion warnings,
since we are storing 32-bit (64-bit) pointers in 64-bit java fields.

9 years agoANDROID: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings
Martin Vajnar [Mon, 29 Sep 2014 18:50:40 +0000 (20:50 +0200)]
ANDROID: ignore 'int-to-pointer' and 'pointer-to-int' compiler warnings

Ignore int-to-pointer and pointer-to-int compiler conversion warnings,
since we are storing 32-bit (64-bit) pointers in 64-bit java fields.

This should make the output of 'ndk-build' script more readable.

9 years agoDocument gAVL, linked list and queue declaration
Martin Vajnar [Sun, 11 May 2014 18:51:50 +0000 (20:51 +0200)]
Document gAVL, linked list and queue declaration

9 years agoDocument gAVL declaration
Michal Sojka [Tue, 15 Apr 2014 08:38:38 +0000 (10:38 +0200)]
Document gAVL declaration

10 years agoROBOT_DEMO: reduce WifiLocks usage
Martin Vajnar [Tue, 8 Apr 2014 11:48:31 +0000 (13:48 +0200)]
ROBOT_DEMO: reduce WifiLocks usage

Use WifiLock only for MotionSpeedPublisher.

10 years agoROBOT_DEMO: move to contribs
Martin Vajnar [Tue, 8 Apr 2014 09:09:11 +0000 (11:09 +0200)]
ROBOT_DEMO: move to contribs

10 years agoJORTE: fix bug in subscriber callback
Martin Vajnar [Tue, 8 Apr 2014 08:51:27 +0000 (10:51 +0200)]
JORTE: fix bug in subscriber callback

This fixes a rarely occurring bug in subscriber callback.

When a Java subscriber is being destroyed, during the process
a JORTECallbackContext_t structure, used for storing pointers to Java objects,
was free()'d. If this occurred when new issue had arrived and was being
processed by the receive thread, then the pointer to the, now non-existent,
callback structure would have been dereferenced, leading to a SEGFAULT.

To fix this we now create a pointer to pointer to the specific structure
and pass this pointer to ORTESubcriptionCreate() and use it from the recvCallBack().

10 years agoRoboDruid: use Toasts for short messages
Martin Vajnar [Tue, 4 Feb 2014 19:57:42 +0000 (20:57 +0100)]
RoboDruid: use Toasts for short messages

10 years agoRoboDruid: make release build
Martin Vajnar [Sun, 2 Feb 2014 12:37:44 +0000 (13:37 +0100)]
RoboDruid: make release build

10 years agoRoboDruid: organize classes into packages
Martin Vajnar [Sat, 1 Feb 2014 17:19:11 +0000 (18:19 +0100)]
RoboDruid: organize classes into packages

10 years agoRoboDruid: improve handling of short taps
Martin Vajnar [Thu, 23 Jan 2014 22:19:36 +0000 (23:19 +0100)]
RoboDruid: improve handling of short taps

10 years agoRoboDruid: toggle Hokuyo output and speed control/monitor by touch input
Martin Vajnar [Wed, 22 Jan 2014 23:19:14 +0000 (00:19 +0100)]
RoboDruid: toggle Hokuyo output and speed control/monitor by touch input

Single tap on Hokuyo output starts/stops subscriber.
Single tap on speed vector starts/stops subscriber,
long tap starts/stops publisher.

10 years agoROBOT_DEMO: use new constants and fix behavior of callback functions
Martin Vajnar [Wed, 23 Oct 2013 07:29:46 +0000 (09:29 +0200)]
ROBOT_DEMO: use new constants and fix behavior of callback functions

Test the receive status to see whether the callback function was called
because of new new data reception or because of a deadline expiration.

10 years agoJORTE: add missing constants from "typedefs_api.h"
Martin Vajnar [Wed, 23 Oct 2013 07:29:05 +0000 (09:29 +0200)]
JORTE: add missing constants from "typedefs_api.h"

10 years agoRevert "JORTE: update license headers and clean-up includes"
Martin Vajnar [Mon, 23 Sep 2013 13:14:43 +0000 (15:14 +0200)]
Revert "JORTE: update license headers and clean-up includes"

This reverts commit 51bf20f848625b4b9ec02dc016537945efc21a02.

10 years agoJORTE: update license headers and clean-up includes
Martin Vajnar [Sun, 22 Sep 2013 13:02:07 +0000 (15:02 +0200)]
JORTE: update license headers and clean-up includes

10 years agoANDROID: add instructions to build
Martin Vajnar [Fri, 13 Sep 2013 13:58:20 +0000 (15:58 +0200)]
ANDROID: add instructions to build

10 years agoANDROID: allow compilation from command line add new orte_config.h
Martin Vajnar [Fri, 13 Sep 2013 13:31:38 +0000 (15:31 +0200)]
ANDROID: allow compilation from command line add new orte_config.h

This allows compilation of native code with ndk-build and of Java part with
ant.

10 years agoJORTE: fix incompatible pointer type compiler warnings
Martin Vajnar [Fri, 13 Sep 2013 10:08:23 +0000 (12:08 +0200)]
JORTE: fix incompatible pointer type compiler warnings

Android's AttachCurrentThread() implementation differs from Oracle's.
In Android the prototype is:
  jint (*AttachCurrentThread)(JavaVM*, JNIEnv**, void*);
In Oracle's Java:
  jint (JNICALL *AttachCurrentThread)(JavaVM *vm, void **penv, void *args);

Android expects JNIEnv** pointer, whereas Java expects void** pointer
to per thread environment structure.

10 years agoMerge branch 'master' of ssh://git@rtime.felk.cvut.cz/orte into android
Martin Vajnar [Fri, 13 Sep 2013 08:25:26 +0000 (10:25 +0200)]
Merge branch 'master' of ssh://git@rtime.felk.cvut.cz/orte into android

10 years agoEndianness test extended to use "sys/param.h" if available.
Pavel Pisa [Thu, 12 Sep 2013 19:42:27 +0000 (21:42 +0200)]
Endianness test extended to use "sys/param.h" if available.

The "sys/param.h" file is expected to be more portable.
It should exist on Mac OS X, RTEMS and BSD.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
10 years agoORTE: fix compiler warning
Martin Vajnar [Thu, 12 Sep 2013 19:18:12 +0000 (21:18 +0200)]
ORTE: fix compiler warning

This allows compilation with Android NDK r9
(treats some warnings as errors).

10 years agoANDROID: fix for NDK r9
Martin Vajnar [Thu, 12 Sep 2013 19:15:06 +0000 (21:15 +0200)]
ANDROID: fix for NDK r9

Remove LOCAL_LDLIBS since it is ignored for
static libraries.

10 years agoLinux OMK configuration supports little- and big-endian targets without reconfigure.
Pavel Pisa [Thu, 12 Sep 2013 16:18:23 +0000 (18:18 +0200)]
Linux OMK configuration supports little- and big-endian targets without reconfigure.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
10 years agoExecute test for target endianness only if "endian.h" is missing or unusable.
Pavel Pisa [Thu, 12 Sep 2013 16:12:52 +0000 (18:12 +0200)]
Execute test for target endianness only if "endian.h" is missing or unusable.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
10 years agoMerge branch 'master' of ssh://git@rtime.felk.cvut.cz/orte into android
Martin Vajnar [Thu, 12 Sep 2013 15:55:46 +0000 (17:55 +0200)]
Merge branch 'master' of ssh://git@rtime.felk.cvut.cz/orte into android

10 years agoUpdate hierarchic timers header files to version from uLUt library.
Pavel Pisa [Wed, 11 Sep 2013 09:05:28 +0000 (11:05 +0200)]
Update hierarchic timers header files to version from uLUt library.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
10 years agoRestore ORTE specific modifications to uLUt.
Pavel Pisa [Wed, 11 Sep 2013 08:34:30 +0000 (10:34 +0200)]
Restore ORTE specific modifications to uLUt.

ORTE defines FREE macro to cover different systems
implementations and uses "orte_all.h" to cover different
set and names of system provided header files.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
10 years agoGet rid of strict-aliasing warnings
Michal Sojka [Tue, 10 Sep 2013 01:00:10 +0000 (03:00 +0200)]
Get rid of strict-aliasing warnings

The warning in question was:
warning: dereferencing type-punned pointer will break strict-aliasing rules

Now, we use union as parameterLocal to explicitly state that we use
this field to store different types.

10 years agoMake AC notice more precise
Michal Sojka [Tue, 10 Sep 2013 00:02:36 +0000 (02:02 +0200)]
Make AC notice more precise

10 years agoA fix for mingw cross-compilation
Michal Sojka [Mon, 9 Sep 2013 23:51:45 +0000 (01:51 +0200)]
A fix for mingw cross-compilation

Note: there are more things that need to be fixed.

10 years agoAdd a hint when to run ./configure
Michal Sojka [Mon, 9 Sep 2013 23:11:39 +0000 (01:11 +0200)]
Add a hint when to run ./configure

10 years agoFix warning about implicit declaration of umask()
Michal Sojka [Mon, 9 Sep 2013 22:58:29 +0000 (00:58 +0200)]
Fix warning about implicit declaration of umask()

I'm not yet sure whether the autoconf generated
orte/include/orte/orte_config.h is created correctly because
ORTE_PACKAGE and ORTE_VERSION is missing. But everything compiles
correctly so I leave it as it is.

10 years agogit: Ignore generated files
Michal Sojka [Mon, 9 Sep 2013 22:49:19 +0000 (00:49 +0200)]
git: Ignore generated files

10 years agoShut up compiler warning
Michal Sojka [Mon, 9 Sep 2013 22:22:45 +0000 (00:22 +0200)]
Shut up compiler warning

10 years agoApply configure.(in|ac) fixes suggested by autoreconf
Michal Sojka [Mon, 9 Sep 2013 22:20:42 +0000 (00:20 +0200)]
Apply configure.(in|ac) fixes suggested by autoreconf

Also prepare for checking for sys/stat.h.

10 years agoAdd configuration for Emacs editor
Michal Sojka [Mon, 9 Sep 2013 21:47:15 +0000 (23:47 +0200)]
Add configuration for Emacs editor

10 years agoUpdate git URL in README
Michal Sojka [Mon, 9 Sep 2013 21:25:58 +0000 (23:25 +0200)]
Update git URL in README

URL has changed due to upgrade at sourceforge.

10 years agoUpdate ul_gavl* files to kill some compiler warnings
Michal Sojka [Mon, 9 Sep 2013 20:40:02 +0000 (22:40 +0200)]
Update ul_gavl* files to kill some compiler warnings

I copied the files from upstream ulut repository
(git://git.code.sf.net/p/ulan/ulut).

10 years agoROBOT_DEMO: release correct wakelock
Martin Vajnar [Thu, 29 Aug 2013 13:32:56 +0000 (15:32 +0200)]
ROBOT_DEMO: release correct wakelock

10 years agoROBOT_DEMO: minor fixes
Martin Vajnar [Thu, 29 Aug 2013 09:08:17 +0000 (11:08 +0200)]
ROBOT_DEMO: minor fixes

10 years agoROBOT_DEMO: minor changes to UI
Martin Vajnar [Wed, 28 Aug 2013 18:16:59 +0000 (20:16 +0200)]
ROBOT_DEMO: minor changes to UI

10 years agoROBOT_DEMO: allow managers setup without restart
Martin Vajnar [Tue, 27 Aug 2013 13:40:30 +0000 (15:40 +0200)]
ROBOT_DEMO: allow managers setup without restart

10 years agoROBOT_DEMO: fix wake lock and revert speed computation change
Martin Vajnar [Tue, 27 Aug 2013 13:14:45 +0000 (15:14 +0200)]
ROBOT_DEMO: fix wake lock and revert speed computation change

10 years agoROBOT_DEMO: handle wifi/wake locks better
Martin Vajnar [Tue, 27 Aug 2013 12:59:11 +0000 (14:59 +0200)]
ROBOT_DEMO: handle wifi/wake locks better

Acquire them only when needed and release otherwise.

10 years agoROBOT_DEMO: add check boxes to menu items and make the managers dialog alive
Martin Vajnar [Tue, 27 Aug 2013 12:42:50 +0000 (14:42 +0200)]
ROBOT_DEMO: add check boxes to menu items and make the managers dialog alive

10 years agoROBOT_DEMO: change About dialog
Martin Vajnar [Tue, 27 Aug 2013 11:03:50 +0000 (13:03 +0200)]
ROBOT_DEMO: change About dialog

10 years agoROBOT_DEMO: change ratio for speed computation
Martin Vajnar [Tue, 27 Aug 2013 10:45:04 +0000 (12:45 +0200)]
ROBOT_DEMO: change ratio for speed computation

10 years agoJORTE: add new constructor to Manager class
Martin Vajnar [Mon, 26 Aug 2013 20:30:58 +0000 (22:30 +0200)]
JORTE: add new constructor to Manager class

10 years agoROBOT_DEMO: add Dialog to set-up fellow managers
Martin Vajnar [Mon, 26 Aug 2013 20:26:58 +0000 (22:26 +0200)]
ROBOT_DEMO: add Dialog to set-up fellow managers

10 years agoANDROID: set min. Android version to 2.3.3
Martin Vajnar [Mon, 26 Aug 2013 12:31:54 +0000 (14:31 +0200)]
ANDROID: set min. Android version to 2.3.3

10 years agoROBOT_DEMO: add launcher icon for LDPI and change minSdkVersion to 10
Martin Vajnar [Mon, 26 Aug 2013 12:31:17 +0000 (14:31 +0200)]
ROBOT_DEMO: add launcher icon for LDPI and change minSdkVersion to 10

Min. Android version is now 2.3.3.

10 years agoROBOT_DEMO: unify Dialog appearance
Martin Vajnar [Mon, 26 Aug 2013 11:42:35 +0000 (13:42 +0200)]
ROBOT_DEMO: unify Dialog appearance

10 years agoROBOT_DEMO: add basic low-pass filter
Martin Vajnar [Sun, 25 Aug 2013 22:08:52 +0000 (00:08 +0200)]
ROBOT_DEMO: add basic low-pass filter

Add basic low-pass filter for motion_speed publisher.

Change CTU logo size.

10 years agoROBOT_DEMO: add "About" dialog
Martin Vajnar [Sun, 25 Aug 2013 21:02:08 +0000 (23:02 +0200)]
ROBOT_DEMO: add "About" dialog

10 years agoROBOT_DEMO: make use of WifiLock and modify WakeLock
Martin Vajnar [Sun, 25 Aug 2013 17:58:34 +0000 (19:58 +0200)]
ROBOT_DEMO: make use of WifiLock and modify WakeLock

Modify WakeLock, so that when acquired on activity start, it wakes up
the phone if then screen was already dimmed or switched off.

Add WifiLock to improve network latency and overall responsiveness.
This solves issues with slow and unreliable Publisher-Subscriber
communication.

Add margins to the CTU logo.

10 years agoROBOT_DEMO: change name to RoboDruid and add CTU logo
Martin Vajnar [Sun, 25 Aug 2013 15:05:47 +0000 (17:05 +0200)]
ROBOT_DEMO: change name to RoboDruid and add CTU logo

10 years agoANDROID: build for all ABIs supported by the NDK
Martin Vajnar [Sun, 25 Aug 2013 11:16:06 +0000 (13:16 +0200)]
ANDROID: build for all ABIs supported by the NDK

Currently supported ABIs are:

armeabi - ARMv5te and higher
armeabi-v7a - ARMv7
mips
x86

10 years agoROBOT_DEMO: use Flamingos logo as launcher icon
Martin Vajnar [Sun, 25 Aug 2013 10:58:12 +0000 (12:58 +0200)]
ROBOT_DEMO: use Flamingos logo as launcher icon

10 years agoROBOT_DEMO: add more IP addresses to ORTE manager's list
Martin Vajnar [Sat, 24 Aug 2013 19:01:11 +0000 (21:01 +0200)]
ROBOT_DEMO: add more IP addresses to ORTE manager's list

10 years agoROBOT_DEMO: change lift to crane
Martin Vajnar [Sat, 24 Aug 2013 18:39:25 +0000 (20:39 +0200)]
ROBOT_DEMO: change lift to crane

10 years agoJORTE: add wrapper for ORTESubscriptionPull() and revert ORTEDomainStart() removal
Martin Vajnar [Sat, 24 Aug 2013 10:55:39 +0000 (12:55 +0200)]
JORTE: add wrapper for ORTESubscriptionPull() and revert ORTEDomainStart() removal

10 years agoROBOT_DEMO: add publishers for "crane_cmd" and "magnet_cmd"
Martin Vajnar [Sat, 24 Aug 2013 09:35:23 +0000 (11:35 +0200)]
ROBOT_DEMO: add publishers for "crane_cmd" and "magnet_cmd"

10 years agoROBOT_DEMO: limit HOKUYO range
Martin Vajnar [Fri, 23 Aug 2013 12:18:20 +0000 (14:18 +0200)]
ROBOT_DEMO: limit HOKUYO range

10 years agoROBOT_DEMO: implement voltage monitor
Martin Vajnar [Fri, 23 Aug 2013 11:49:46 +0000 (13:49 +0200)]
ROBOT_DEMO: implement voltage monitor

10 years agoROBOT_DEMO: prepare for voltage monitor
Martin Vajnar [Thu, 22 Aug 2013 20:44:46 +0000 (22:44 +0200)]
ROBOT_DEMO: prepare for voltage monitor

Add dialog for voltage monitor.

10 years agoROBOT_DEMO: add motion speed subscriber
Martin Vajnar [Wed, 21 Aug 2013 21:03:31 +0000 (23:03 +0200)]
ROBOT_DEMO: add motion speed subscriber

Add motion speed monitor.

10 years agoROBOT_DEMO: draw scale in HokuyoView
Martin Vajnar [Tue, 20 Aug 2013 17:48:01 +0000 (19:48 +0200)]
ROBOT_DEMO: draw scale in HokuyoView

10 years agoROBOT_DEMO: fix starting index and inverted logic
Martin Vajnar [Mon, 19 Aug 2013 21:32:03 +0000 (23:32 +0200)]
ROBOT_DEMO: fix starting index and inverted logic

10 years agoROBOT_DEMO: scale HOKUYO view to fit the screen
Martin Vajnar [Mon, 19 Aug 2013 21:06:31 +0000 (23:06 +0200)]
ROBOT_DEMO: scale HOKUYO view to fit the screen

10 years agoROBOT_DEMO: screen orientation for motion control
Martin Vajnar [Mon, 19 Aug 2013 15:07:26 +0000 (17:07 +0200)]
ROBOT_DEMO: screen orientation for motion control

Force portrait screen orientation when motion control (motion_speed)
is active.

10 years agoROBOT_DEMO: enable screen rotation
Martin Vajnar [Mon, 19 Aug 2013 12:52:02 +0000 (14:52 +0200)]
ROBOT_DEMO: enable screen rotation

10 years agoROBOT_DEMO: use higher sampling rate for accelerometer
Martin Vajnar [Tue, 6 Aug 2013 17:53:08 +0000 (19:53 +0200)]
ROBOT_DEMO: use higher sampling rate for accelerometer

10 years agoROBOT_DEMO: simplify MessageData types
Martin Vajnar [Tue, 6 Aug 2013 17:51:51 +0000 (19:51 +0200)]
ROBOT_DEMO: simplify MessageData types

10 years agoROBOT_DEMO: fix thread sync. problems better
Martin Vajnar [Tue, 6 Aug 2013 17:50:39 +0000 (19:50 +0200)]
ROBOT_DEMO: fix thread sync. problems better

Use ReentrantLock and ReentrantReadWriteLock for thread synchronization.

10 years agoROBOT_DEMO: simplify clearing screen
Martin Vajnar [Tue, 6 Aug 2013 09:24:04 +0000 (11:24 +0200)]
ROBOT_DEMO: simplify clearing screen

10 years agoROBOT_DEMO: fix sync. problems in publisher for "motion_speed"
Martin Vajnar [Mon, 5 Aug 2013 21:37:29 +0000 (23:37 +0200)]
ROBOT_DEMO: fix sync. problems in publisher for "motion_speed"

Don't use synchronized(), because it may block the setSpeed() and prevent
receiving new data from accelerometer. The isSent variable is now used
to determine whether we need new data.

Add robot's IP address to the list of fellow managers.

10 years agoROBOT_DEMO: fix sync. problems in HokuyoView
Martin Vajnar [Mon, 5 Aug 2013 19:26:29 +0000 (21:26 +0200)]
ROBOT_DEMO: fix sync. problems in HokuyoView

Set new data only if the previous batch has been drawn and clone the newly
arrived data array. This prevents concurrent access problems when
the previous batch is being drawn on the UI thread and new data arrives
through ORTE's receive thread.

10 years agoROBOT_DEMO: set minimum separation for "hokuyo_scan"
Martin Vajnar [Mon, 5 Aug 2013 17:50:53 +0000 (19:50 +0200)]
ROBOT_DEMO: set minimum separation for "hokuyo_scan"

Compensate for drawing artifacts. Set minSeparation to 0.18s.

10 years agoROBOT_DEMO: correct speed computation
Martin Vajnar [Mon, 5 Aug 2013 16:42:23 +0000 (18:42 +0200)]
ROBOT_DEMO: correct speed computation

Correct calculation of speed sent to motors when moving in reverse.

10 years agoROBOT_DEMO: MessageData clean up
Martin Vajnar [Fri, 26 Jul 2013 08:59:36 +0000 (10:59 +0200)]
ROBOT_DEMO: MessageData clean up

10 years agoJORTE: improve ByteOrder handling
Martin Vajnar [Fri, 26 Jul 2013 08:44:46 +0000 (10:44 +0200)]
JORTE: improve ByteOrder handling

Store the ByteOrder of MessageData's ByteBuffer in receive callback
structure in C (in case someone reuses already created MessageData instance
with new subscriber).

Force native byte order setting in publisher.

10 years agoORTE,JORTE: set byte order of ByteBuffer from receive callback
Martin Vajnar [Fri, 26 Jul 2013 08:00:15 +0000 (10:00 +0200)]
ORTE,JORTE: set byte order of ByteBuffer from receive callback

Pass data_endian in ORTERecvInfo structure and use it to set the byte order
of Java's ByteBuffer.

10 years agoRevert "JORTE: add deserialize function to support endianness setting"
Martin Vajnar [Fri, 26 Jul 2013 07:54:03 +0000 (09:54 +0200)]
Revert "JORTE: add deserialize function to support endianness setting"

This reverts commit 683e5f61f3e7b6c1ade1b4910264d8f96781ade0.

10 years agoRevert "ORTE: add support for param structure in TypeRegister"
Martin Vajnar [Fri, 26 Jul 2013 07:53:49 +0000 (09:53 +0200)]
Revert "ORTE: add support for param structure in TypeRegister"

This reverts commit 3ee9dd9cded871b38859b1881c4d98548f5b688e.

10 years agoRevert "JORTE: switch from deserialize function to endianness callback"
Martin Vajnar [Fri, 26 Jul 2013 07:53:38 +0000 (09:53 +0200)]
Revert "JORTE: switch from deserialize function to endianness callback"

This reverts commit fe36c69fd0d022fafc9acf3a51ca1ba780978f35.

10 years agoRevert "ROBOT_DEMO: incorporate new TypeRegister handling"
Martin Vajnar [Fri, 26 Jul 2013 07:53:24 +0000 (09:53 +0200)]
Revert "ROBOT_DEMO: incorporate new TypeRegister handling"

This reverts commit f4af31a4b00c130eb5fb67fcc1012dd5d205ea7a.

10 years agoRevert "ROBOT_DEMO: incorporate changes in ORTETypeRegisterAdd()"
Martin Vajnar [Fri, 26 Jul 2013 07:53:06 +0000 (09:53 +0200)]
Revert "ROBOT_DEMO: incorporate changes in ORTETypeRegisterAdd()"

This reverts commit 4e4e50c8a29fc3a2cf37d681e7f95b3d5e01d932.

10 years agoROBOT_DEMO: incorporate changes in ORTETypeRegisterAdd()
Martin Vajnar [Thu, 25 Jul 2013 17:11:47 +0000 (19:11 +0200)]
ROBOT_DEMO: incorporate changes in ORTETypeRegisterAdd()

10 years agoROBOT_DEMO: incorporate new TypeRegister handling
Martin Vajnar [Thu, 25 Jul 2013 12:46:19 +0000 (14:46 +0200)]
ROBOT_DEMO: incorporate new TypeRegister handling

10 years agoJORTE: switch from deserialize function to endianness callback
Martin Vajnar [Thu, 25 Jul 2013 12:45:43 +0000 (14:45 +0200)]
JORTE: switch from deserialize function to endianness callback

Yesterday's attempt at setting the byte order of ByteBuffer through
a deserialize function has one significant drawback and that is if more
than one data type is defined under one VM instance (thus accessible by
other threads) and subscribers are then registered for these data types
the deserialize function will stop working correctly, because there are
no parameter structures being passed to it, except for the CDR_Codec,
thus it had to use a global reference to a byte buffer which is
unfortunately overwritten the moment a new data type is registered.
If the deserialize function for the previously registered data type
is invoked it then tampers with ByteBuffer settings of a newly registered
data type.

10 years agoORTE: add support for param structure in TypeRegister
Martin Vajnar [Thu, 25 Jul 2013 12:38:26 +0000 (14:38 +0200)]
ORTE: add support for param structure in TypeRegister

This adds support for user defined callback function processEndianness()
with processParam structure being set at Type creation and passed
to processEndianness().

The processEndianness() function is called if defined and if there is no
deserialization function and thus no other way for the user application to
know the byte order of received issue.

10 years agoJORTE: add deserialize function to support endianness setting
Martin Vajnar [Wed, 24 Jul 2013 20:55:24 +0000 (22:55 +0200)]
JORTE: add deserialize function to support endianness setting

This adds implementation of deserialize function which sets proper byte
order for Java's ByteBuffer based on the received data's endianness.

Serialize function is not needed as long as the byte order of Java's
ByteBuffer is not manually changed from native byte order.

10 years agoROBOT_DEMO: remove DomainEvents
Martin Vajnar [Tue, 23 Jul 2013 17:30:13 +0000 (19:30 +0200)]
ROBOT_DEMO: remove DomainEvents

10 years agoANDROID: incorporate new domain events handling
Martin Vajnar [Tue, 23 Jul 2013 14:56:05 +0000 (16:56 +0200)]
ANDROID: incorporate new domain events handling

10 years agoJORTE: free() domain events
Martin Vajnar [Tue, 23 Jul 2013 14:55:00 +0000 (16:55 +0200)]
JORTE: free() domain events

This fixes memory leak in jORTEDomainInitEvents() and removes unused code
from JOrte.java.

10 years agoJORTE: fraction computation
Martin Vajnar [Tue, 23 Jul 2013 10:06:37 +0000 (12:06 +0200)]
JORTE: fraction computation

Fix getDecimal() function.

10 years agoJORTE: fix memory leak and add DomainEvents to DomainMgr
Martin Vajnar [Tue, 23 Jul 2013 09:09:39 +0000 (11:09 +0200)]
JORTE: fix memory leak and add DomainEvents to DomainMgr

Memory leaks in jORTEDomainAppCreate() and jORTEDomainMgrCreate()
(domain events callback structure) are fixed. Domain events callbacks
are placed in a separate file. Their prototypes are placed in "jorte/
/jorte_protos_api.h". This way they could be used by DomainApp
and DomainMgr.

Native functions in both DomainApp.java and DomainMgr.java are now non-
static. This allows native domain destructor to free the memory allocated
to domain events callback structure.

It is now also possible to pass null for DomainEvents or DomainProp to
DomainApp and DomainMgr constructors.

The header file onLoad.h is removed and the findClass() prototype is placed
into "jorte/jorte_protos_api.h".

10 years agoJORTE: add type casts
Martin Vajnar [Sun, 21 Jul 2013 15:56:48 +0000 (17:56 +0200)]
JORTE: add type casts

10 years agoJORTE: remove unused variable and use TEST_STAGE for time
Martin Vajnar [Sun, 21 Jul 2013 12:45:50 +0000 (14:45 +0200)]
JORTE: remove unused variable and use TEST_STAGE for time