239 Commits

Author SHA1 Message Date
Pavel Kirienko
b86ea67563 Reorganized directory structure for tests and src 2014-03-10 19:25:28 +04:00
Pavel Kirienko
21fda96978 Type safe time classes with tests, to replace uint64_t for time values 2014-03-10 19:00:59 +04:00
Pavel Kirienko
aa7a74bd1e Scheduler test moved into the appropriate directory 2014-03-10 17:25:25 +04:00
Pavel Kirienko
1f2b8bf006 Checking the max transfer payload length for generated types 2014-03-10 15:51:59 +04:00
Pavel Kirienko
ee7a847ce0 dsdlc template renamed to *.tmpl to enable proper syntax highlighting and avoid confusion with C++ headers 2014-03-10 15:48:27 +04:00
Pavel Kirienko
d834edbf62 Forgotten explicit keyword for timer forwarder constructor 2014-03-10 14:08:30 +04:00
Pavel Kirienko
3d8285b123 Common naming conventions for event handling methods: handleFooBar() instead of onFooBar() 2014-03-10 14:03:46 +04:00
Pavel Kirienko
393641b5b6 Conforming style for TimerEventForwarder<> 2014-03-10 14:00:51 +04:00
Pavel Kirienko
4b92497aee Refactoring - Scheduler, GenericPublisher, GenericSubscruber moved into /uavcan/internal/node/* 2014-03-10 13:53:10 +04:00
Pavel Kirienko
6573d79fd1 Style fix in Map<> 2014-03-10 11:18:04 +04:00
Pavel Kirienko
224a072120 try_implicit_cast<>() supports non default constructible target types 2014-03-10 11:12:57 +04:00
Pavel Kirienko
38e43e58ad Nicer TimerEventForwarder<> 2014-03-10 11:01:43 +04:00
Pavel Kirienko
2aa9d8cdb5 Subscriber properly handles types that do not require buffering (i.e. types that do not require MFT transport). Ugly test added. 2014-03-10 01:50:42 +04:00
Pavel Kirienko
30aa1bdecc StaticIf<> renamed to much more appropriate and widely known name - Select<> 2014-03-09 21:50:58 +04:00
Pavel Kirienko
ce618f6436 Utils moved to uavcan/util/* 2014-03-09 21:46:21 +04:00
Pavel Kirienko
0aa76d71e3 Comparison operators for generated types 2014-03-09 21:28:46 +04:00
Pavel Kirienko
ee1de9ab2e Streaming operator for generated types was moved into the type's namespace 2014-03-09 21:13:37 +04:00
Pavel Kirienko
3dc5183317 Centralized fatal error handling via handleFatalError(msg) 2014-03-09 20:48:06 +04:00
Pavel Kirienko
1b7efa45f5 Subscriber: proper destruction, tests for that, tests for getFailureCount() 2014-03-09 19:37:07 +04:00
Pavel Kirienko
31e169db4a Added checks for the subscriber test 2014-03-09 18:02:28 +04:00
Pavel Kirienko
2c2d7605a7 Subscriber with simple test 2014-03-09 17:58:32 +04:00
Pavel Kirienko
5fa5962f6f Tests: areTimestampsClose() moved to common.hpp 2014-03-09 17:58:17 +04:00
Pavel Kirienko
acca96f5a0 Quick fix for test execution order problems (yes, singletones are hard to unittest) 2014-03-09 17:03:39 +04:00
Pavel Kirienko
c7351c4bbb Improved MethodBinder 2014-03-09 16:53:32 +04:00
Pavel Kirienko
c1a8f818f8 GDTR tracing 2014-03-09 16:49:59 +04:00
Pavel Kirienko
326f7082d5 Syntax fix 2014-03-09 14:07:51 +04:00
Pavel Kirienko
6a2eb3b852 Tests for try_implicit_cast<>() 2014-03-09 14:04:11 +04:00
Pavel Kirienko
1659b5c476 Added try_implicit_cast<>() to check callbacks validness at run time 2014-03-09 13:47:07 +04:00
Pavel Kirienko
0afb7f4eea Minor optimization for publisher 2014-03-09 11:24:13 +04:00
Pavel Kirienko
8bd1dd01e9 Test fix 2014-03-09 11:17:34 +04:00
Pavel Kirienko
081f1f9733 Publisher got simplified - no blocking deadline, default tx_timeout = 2.5 ms 2014-03-09 11:14:31 +04:00
Pavel Kirienko
baed1d17c5 IncomingTransfer implements ITransferBuffer, which is necessary for message codec 2014-03-09 00:47:01 +04:00
Pavel Kirienko
31e47daf84 Fixed fatal error handing (exceptions); MethodBinder moved into a separate file 2014-03-09 00:12:07 +04:00
Pavel Kirienko
d9474388b0 Compile time BitLenToByteLen computation; marshal type util tests 2014-03-08 23:24:20 +04:00
Pavel Kirienko
fb329a2f0a Typo 2014-03-08 23:08:30 +04:00
Pavel Kirienko
395710b781 getScheduler() for Publisher 2014-03-08 23:04:05 +04:00
Pavel Kirienko
77184fc062 Writing top-level logic - publisher 2014-03-08 23:01:05 +04:00
Pavel Kirienko
35db1858c8 Latest fixes to GDTR made such thing as name collisions completely impossible, so tests were fixed accordingly 2014-03-08 22:03:58 +04:00
Pavel Kirienko
7e17e852d1 Static analyzer warning fix; I'm not sure there is any point in such initialization though, so it might need to be removed later 2014-03-08 22:02:51 +04:00
Pavel Kirienko
5a92b58e3e Safer LazyConstructor - now requires to specify constructor parameter types manually 2014-03-08 21:50:28 +04:00
Pavel Kirienko
b6dd1e3a14 GDTR fix - double remove() before registering 2014-03-08 20:10:10 +04:00
Pavel Kirienko
c00083f9f8 Added accessors for static transfer buffer template 2014-03-08 19:51:46 +04:00
Pavel Kirienko
7cb85561bf Scheduler checks its timing configs 2014-03-08 18:54:22 +04:00
Pavel Kirienko
7b4ef80c40 Lazy constructor init fix 2014-03-08 18:53:42 +04:00
Pavel Kirienko
fd454a77f8 LazyConstructor 2014-03-08 15:19:41 +04:00
Pavel Kirienko
bc065ee3c4 TransferSender::DefaultMaxTransferInterval made public 2014-03-08 14:13:00 +04:00
Pavel Kirienko
9ad3017929 Explicit constructors for deadline handler and timer 2014-03-08 13:24:34 +04:00
Pavel Kirienko
5559e7e447 Added scheduler accessor for deadline handler 2014-03-08 13:20:18 +04:00
Pavel Kirienko
2fa3f2c7c7 Refactored scheduler 2014-03-08 13:03:04 +04:00
Pavel Kirienko
aef70367d9 Scheduler 2014-03-08 01:01:50 +04:00