Reinder Feenstra
3d815a77c3
fix: unused warnings
2021-12-20 13:03:54 +01:00
Reinder Feenstra
6139fa366c
ecos: added mirror objects for ECoS internal objects
2021-12-20 00:23:31 +01:00
Reinder Feenstra
74e945c43a
ecos: implemented reply parsing and handing of stop/go reply
2021-12-12 15:29:17 +01:00
Reinder Feenstra
f527303360
ecos: added extra commands for testing ECoS response
2021-12-11 23:12:54 +01:00
Reinder Feenstra
6dd85456e3
fix: string_view::const_iterator and const char* aren't interchangeable (at least in clang)
2021-12-04 09:56:36 +01:00
Reinder Feenstra
a230e96506
moved rtrim() to rtrim.hpp, removed duplicate startsWith()
2021-12-03 23:36:22 +01:00
Reinder Feenstra
163d2c95e2
WIP: basic ECoS protocol support
2021-12-03 23:35:17 +01:00
Reinder Feenstra
d1ea49b8e5
Z21: added header opcodes and broadcast flags
2021-11-29 23:30:17 +01:00
Reinder Feenstra
04c5e366a1
fixed unused error in release build
2021-11-29 23:19:36 +01:00
Reinder Feenstra
f4ef6f3f02
loconet: added Z21 IO handler
2021-11-29 23:18:57 +01:00
Reinder Feenstra
3ceea50b53
loconet: implemented waiting for response before sending next message
2021-11-29 23:11:01 +01:00
Reinder Feenstra
6b59525b42
rewrote DCC++(EX)
2021-11-28 22:43:41 +01:00
Reinder Feenstra
8128f7aa50
utils: added rtrim function
2021-11-28 21:50:05 +01:00
Reinder Feenstra
d62146bf4a
Merge branch 'master' of github.com:traintastic/traintastic
2021-11-27 11:47:27 +01:00
Reinder Feenstra
47bb794a82
lua: added script access for board, train and rail vehicle
2021-11-27 11:41:14 +01:00
Reinder Feenstra
546c87e94d
lua: added support for object lists
2021-11-27 11:05:04 +01:00
Reinder Feenstra
393e6585d9
fix: added missing include
2021-11-24 09:51:04 +01:00
Reinder Feenstra
63eec6d461
lua: added event support
2021-11-24 00:07:36 +01:00
Reinder Feenstra
c5dac66570
world: added on_event event
2021-11-24 00:02:56 +01:00
Reinder Feenstra
c031dfabcd
core: added event support
2021-11-24 00:02:21 +01:00
Reinder Feenstra
a072bdef76
test: lua is_instance -> get_class, fixed implementation issues
2021-11-23 23:50:54 +01:00
Reinder Feenstra
f1c2b5fa55
lua: added property script writable check
2021-11-20 00:28:11 +01:00
Reinder Feenstra
f7f289e1d6
lua: added extended type() function and replaced in_instance() by get_class()
2021-11-20 00:27:00 +01:00
Reinder Feenstra
f64ec12961
lua: added math, string and table library to sandbox
...
except string.dump()
2021-11-14 01:12:39 +01:00
Reinder Feenstra
906ff82cd8
lua: made built-in globals read only
2021-11-13 00:39:45 +01:00
Reinder Feenstra
b6ec6cc8bd
lua: added LUA_VERSION global
2021-11-13 00:35:56 +01:00
Reinder Feenstra
c290837d33
lua: world: allow stop and power_off call from script
2021-11-10 23:49:22 +01:00
Reinder Feenstra
947e9bb1aa
lua: fixed VERSION constants
2021-11-10 23:48:30 +01:00
Reinder Feenstra
803ca40ec6
added method flags to control method access within the Lua scripting engine
2021-11-10 23:19:49 +01:00
Reinder Feenstra
b9897c996d
lua: enabled readonly access to world uuid/name/scale/scale_ratio and state properties
2021-11-10 22:43:50 +01:00
Reinder Feenstra
274537038a
lua: added support for reading set properties
...
changed lua set storage from T to lua_Integer
2021-11-10 22:42:18 +01:00
Reinder Feenstra
f0eac15247
added property flags to control property access within the Lua scripting engine
2021-11-10 22:03:03 +01:00
Reinder Feenstra
0546ef1c30
lua: added WorldScale enum to sandbox
2021-11-10 21:58:09 +01:00
Reinder Feenstra
2dc42015dc
lua: added support for reading enum properties
2021-11-10 21:55:26 +01:00
Reinder Feenstra
a4806f36f9
moved serial port open code to function for reuse
2021-10-25 23:05:42 +02:00
Reinder Feenstra
c4e6986c9f
Merge branch 'interface-controller' of github.com:traintastic/traintastic into interface-controller
2021-10-24 17:23:11 +02:00
Reinder Feenstra
9db313ad79
loconet: added attributes and cleanup
2021-10-24 17:23:07 +02:00
Reinder Feenstra
f52502bcbf
WIP: XpressNet rewrite
2021-10-24 17:22:17 +02:00
Reinder Feenstra
c5267c69b8
fix: -Wc++11-narrowing
2021-10-18 23:29:43 +02:00
Reinder Feenstra
ba474f4427
fix: added undef interface, interface is defined in combaseapi.h
2021-10-18 23:08:52 +02:00
Reinder Feenstra
21471a2797
loconet: enabled reading all slot after connect
2021-10-17 21:29:09 +02:00
Reinder Feenstra
2a222ca5fe
fix: -Wshadow
2021-10-17 21:28:47 +02:00
Reinder Feenstra
6245513048
WIP: loconet: major rewrite:
...
one interface with three io handler backends: serial/tcp binary/LBServer
the kernel runs it's own thread for handling all loconet traffic (and future filtering), it only notifies the event loop if something changes
2021-10-17 16:38:51 +02:00
Reinder Feenstra
956c8ad168
Replaced command station and controller by interface with supporting controllers
2021-10-17 16:10:56 +02:00
Reinder Feenstra
48d53f60f2
added setMinMax attribute helper
2021-10-17 11:00:41 +02:00
Reinder Feenstra
db1808ec86
added argument support to LogMessageException
2021-10-17 10:55:05 +02:00
Reinder Feenstra
b7de6c91b9
fix: corrected power on/off log messages
2021-10-17 10:53:06 +02:00
Reinder Feenstra
48c32708d1
board: straight can now also be upgraded to a tunnel, block or sensor
2021-10-12 22:14:57 +02:00
Reinder Feenstra
8ac1c4d2ae
fix: corrected class id, caused buffer stop not to be buildable
2021-10-12 22:13:40 +02:00
Reinder Feenstra
dd08ede080
board: allow placing signal on top of straght if direction matches
2021-10-06 22:23:09 +02:00