285 Commits

Author SHA1 Message Date
Pavel Kirienko
06603ad237 Much improved tests: Both C++03/C++11 are supported, with exceptions and without them; test outputs are being dumped on disk 2014-03-17 19:45:27 +04:00
Pavel Kirienko
4025bf033b Fixed C++11 support 2014-03-17 19:06:11 +04:00
Pavel Kirienko
fa8a9cd8ed DSDL: LogLevel extracted into a separate nested type for future extensibility 2014-03-17 15:28:58 +04:00
Pavel Kirienko
730a571c8d The work on the highest-level concepts have just started; here goes NodeStatusProvider with tests 2014-03-15 14:49:23 +04:00
Pavel Kirienko
65cdbbdddb Fixed unused arguments in generated data types 2014-03-15 13:59:30 +04:00
Pavel Kirienko
206551bf78 Testing helper class - InterlinkedTestNodes 2014-03-15 12:58:39 +04:00
Pavel Kirienko
bb5f77857d Changes in uavcan.protocol.GetNodeInfo 2014-03-15 11:55:56 +04:00
Pavel Kirienko
cf3f2080a5 INode got void registerInternalFailure(const char* msg) 2014-03-15 11:55:22 +04:00
Pavel Kirienko
9b0aa5353b Array<> - more runtime checks 2014-03-15 11:54:20 +04:00
Pavel Kirienko
f60e4a537f UAVCAN_VERSION_* defines 2014-03-15 11:49:24 +04:00
Pavel Kirienko
964e666f86 Timer constructor takes INode instead of Scheduler - for compatibility reasons 2014-03-14 23:04:45 +04:00
Pavel Kirienko
6e49c2aeaf Error handling fix 2014-03-14 22:17:00 +04:00
Pavel Kirienko
613efa49b9 INode class. Publisher, Subscriber, ServiceServer, ServiceClient now accept INode in constructor instead of the bunch of independent params. Self NodeID now being configured via setNodeID() method instead of constructor param 2014-03-14 19:54:27 +04:00
Pavel Kirienko
15cbf96378 Reorganized directory structure - directory 'internal' pulled up one level. No logical changes. 2014-03-14 15:01:20 +04:00
Pavel Kirienko
ab34c94ba2 Printing size of some data structures from the ServiceClient<> test 2014-03-14 13:32:01 +04:00
Pavel Kirienko
ce0174a734 Optimized messages in uavcan.protocol.* 2014-03-14 13:18:31 +04:00
Pavel Kirienko
8889a52e63 Added runtime checks for server and client 2014-03-14 11:33:37 +04:00
Pavel Kirienko
0f1b124086 Array<>::operator+=(Array<>) implementation and test 2014-03-14 02:19:57 +04:00
Pavel Kirienko
62abf10f65 ostream operator for ReceivedDataStructure<> 2014-03-14 01:54:02 +04:00
Pavel Kirienko
8f2034b090 ostream operator for ServiceCallResult<> 2014-03-14 01:45:16 +04:00
Pavel Kirienko
bc70390722 Renaming: Server<> --> ServiceServer<> 2014-03-14 01:20:27 +04:00
Pavel Kirienko
cefc346ebb TimerEvent fields were renamed; timer pointer removed 2014-03-14 01:09:13 +04:00
Pavel Kirienko
6d584734bb ServiceClient<> 2014-03-14 00:53:53 +04:00
Pavel Kirienko
4bb66fb492 OTR logging 2014-03-14 00:52:51 +04:00
Pavel Kirienko
e7cef20c79 Added logging for GDTR 2014-03-14 00:19:44 +04:00
Pavel Kirienko
b18e9c84ed Passing callbacks by reference 2014-03-13 21:28:29 +04:00
Pavel Kirienko
51833fb08f Fixed publication timeouts (Server, Publisher, GenericPublisher) 2014-03-13 14:45:31 +04:00
Pavel Kirienko
2eaa4b3c31 Refactored GenericSubscriber<> to support the upcoming Caller<> 2014-03-13 13:00:03 +04:00
Pavel Kirienko
beaba20749 Simplified service types: the nested types Request/Response are templates now, but the containing type is not, so using 'typename' to refer to Request or Response is no longer necessary. 2014-03-12 21:20:05 +04:00
Pavel Kirienko
7bc7269e37 Checking server failure counters in test 2014-03-12 13:08:31 +04:00
Pavel Kirienko
0f877dec88 Server<> 2014-03-12 13:02:28 +04:00
Pavel Kirienko
629ed8c28e MethodBinder passes all values by reference 2014-03-12 13:01:39 +04:00
Pavel Kirienko
3426d55cac CAN mock method - popTxFrame() 2014-03-12 13:01:15 +04:00
Pavel Kirienko
54f920898d Pub/sub fixes 2014-03-12 13:00:40 +04:00
Pavel Kirienko
ad3175a235 GenericSubscriber<>::getFailureCount() made protected - needed for Server<> 2014-03-12 11:28:19 +04:00
Pavel Kirienko
061dc8f513 Fixed linking of generated types - generated types are templates now, which allows to define static constant member in headers avoiding linking errors 2014-03-12 10:44:40 +04:00
Pavel Kirienko
07bad40387 Added tests for proper linking of generated types. Now these tests are failing to pass - will be fixed soon. 2014-03-11 22:23:15 +04:00
Pavel Kirienko
d1d35760d4 DataTypeID tests 2014-03-11 21:33:18 +04:00
Pavel Kirienko
62ea9e2746 Type safe DataTypeID class 2014-03-11 21:29:35 +04:00
Pavel Kirienko
befea376c2 Fixed inclusion loops 2014-03-11 21:00:28 +04:00
Pavel Kirienko
6eee97fb05 DSDLC default output directory name was changed to more obvious 'dsdlc_generated' 2014-03-11 20:16:58 +04:00
Pavel Kirienko
026105d0b4 DSDLC invocation has been fixed - now it generates messages even if the tests are not going to be built 2014-03-11 20:12:57 +04:00
Pavel Kirienko
ca9bebce13 Time overflow tests 2014-03-11 15:00:14 +04:00
Pavel Kirienko
d5e30f643c Renaming: MonotonicDeadlineHandler --> DeadlineHandler 2014-03-11 14:49:43 +04:00
Pavel Kirienko
65a4dcc2cf Superrefactoring - all time values were replaced with new safer classes from uavcan/time.hpp; generated types were moved away from anonymous namespaces because this makes it impossible to use a type from different compilation units. Some less vital fixes are to follow - see the next few commits 2014-03-11 14:41:48 +04:00
Pavel Kirienko
633fa9d8bd Bitarray copy algorithm was moved to C++ source file, thus C compiler is no longer required 2014-03-10 19:33:06 +04:00
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