Commit Graph
100 Commits
Author SHA1 Message Date
sani7 e6fb79e189 can debugger
fix message disappearing
2026-02-01 18:43:10 +01:00
sani7 a79b56bc92 remove unused include 2026-02-01 18:43:10 +01:00
sani7 f924a43251 ui
change can naming
2026-02-01 18:43:10 +01:00
sani7 f32838a7a5 update color lib 2026-02-01 18:43:10 +01:00
sani7 a3a1280976 ui
remove comment
2026-02-01 18:43:09 +01:00
sani7 9104e5f616 did some testing with custom hardware 2026-02-01 18:42:44 +01:00
sani7 b289eb7cf2 main fix typo 2026-02-01 18:42:26 +01:00
sani7 83e409e5cd test cmake 2026-02-01 18:42:25 +01:00
sani7 e7f13d9965 CAN debuger 2026-02-01 18:42:24 +01:00
sani7 10604e4b03 CAN interface / wrapper
try to get it to function with can ui
2026-02-01 18:41:50 +01:00
sani7 d154100702 simbase
Add run at stop
2026-02-01 18:41:36 +01:00
sani7 53a7af5d25 Add can dev as param 2026-02-01 18:41:33 +01:00
sani7 5ea9db8a89 test 2026-02-01 18:40:58 +01:00
sani7 6d6441424e update spdlog 2026-02-01 18:40:57 +01:00
sani7 c096450dde can interface
add extra logging of errors
2026-02-01 18:40:57 +01:00
sani7 e25e2baa12 can interface
remove next mid
2026-02-01 18:40:57 +01:00
sani7 2484d75898 Add cpp-templates submodule 2026-02-01 18:40:30 +01:00
sani7 29c00d1ffc CAN interface
add next mid function
2026-02-01 18:40:29 +01:00
sani7 bd72cda97e Change can interface
Now emits can frames via signal
2026-02-01 18:40:16 +01:00
sani7 ad8f06ba9d UI
remove unused includes
2024-12-30 12:08:13 +01:00
sani7 7b0276e1f1 CMake 2024-12-30 12:08:13 +01:00
sani7 b8aa9449ac fix spelling mistake 2024-12-30 12:08:13 +01:00
sani7 88eeb7e6ca UI
UI_can
2024-12-30 12:08:13 +01:00
sani7 6f72617371 CAN
Move from src to tools
2024-12-30 12:08:13 +01:00
sani7 5fdfb765de Add can ui element 2024-12-30 12:08:13 +01:00
sani7 460bc09b2f Initial CAN files 2024-12-30 12:08:13 +01:00
sani7 058de6a749 simulators
add warnings
2024-12-30 12:08:13 +01:00
sani7 000ede8cc1 update json lib 2024-12-21 11:36:23 +01:00
sani7 9be6f7b186 update test sim 2024-11-27 19:01:30 +01:00
sani7 a01f8fd8ae Clean
remove unused includes or debug
2024-11-22 22:11:53 +01:00
sani7 26e5a59583 UI
Remove text field from combobox
2024-11-22 22:11:53 +01:00
sani7 a26ddf02d1 test sim
add unit
2024-10-17 16:21:48 +02:00
sani7 7b5b4e0d65 UI
Thermo add checks for from and to json
2024-10-17 16:21:31 +02:00
sani7 399390d737 UI tests
Fix tests
2024-10-17 10:21:19 +02:00
sani7 f64df41df8 UI
Make a checkbox a UI item instead of UI_x_boxes
2024-10-17 10:21:06 +02:00
sani7 5889af5494 UI
Add units to the dial, slider and thermo
2024-10-17 10:19:50 +02:00
sani7 95a21250a6 Move to id is size_t 2024-10-10 19:47:18 +02:00
sani7 d02b31ab25 main
remove thread number
2024-09-16 17:47:13 +02:00
sani7 b44beed3ad main
disable file logger
2024-09-15 16:58:48 +02:00
sani7 aeeb5bbe19 websocket
fix debug log message
2024-09-15 16:55:25 +02:00
sani7 e876ec1aec Add example commands 2024-09-15 16:53:11 +02:00
sani7 b2b8023e65 add html page for testing server 2024-09-15 16:52:54 +02:00
sani7 756f69e9c7 Lint 2024-09-12 20:43:12 +02:00
sani7 67bcf10b16 websocket debug
now using spdlog
2024-09-12 18:45:50 +02:00
sani7 734a8dfca2 Move to Qt
Move to QTimer
Remove unused submodules
2024-09-12 17:07:06 +02:00
sani7 9eef1fc3ff Move to Qt
Everything seems to be working
Only timer is not moved over
2024-09-12 16:59:54 +02:00
sani7 fc181726b9 UI
Move ui item stubs from header to src
2024-09-07 15:48:35 +02:00
sani7 00e515066e Lint 2024-09-06 14:52:56 +02:00
sani7 58627f137e Websocket
Add ping pong response
2024-09-06 11:55:33 +02:00
sani7 293fb4b137 main
change log format
2024-09-06 11:55:03 +02:00
sani7 21a2c16607 Lint 2024-08-29 15:00:27 +02:00
sani7 6c6a60e980 Add linter + clang-format 2024-08-29 14:58:33 +02:00
sani7 77feda0c0f b simulators
got std::out_of_range on substr exception with 10 as size and this is the only place i use substr with size 10
2024-08-28 21:10:43 +02:00
sani7 b221f8e448 b test
fix test fail because separate threads
2024-08-28 21:04:45 +02:00
sani7 6f3215166b b UI
fix from json not setting function ptr to null
2024-08-28 20:58:26 +02:00
sani7 8ba2dc4ef1 b test
fix test fail because separate threads
2024-08-28 20:45:07 +02:00
sani7 d45d9c240d b UI
add default on UI_textbox on_change
2024-08-28 20:44:41 +02:00
sani7 8cabf7a6e9 UI message parser
move message parser threads to UI set functions
2024-08-28 19:59:23 +02:00
sani7 70b953dc16 message parser
event handling is now "async" in it's own separate thread
2024-08-28 19:11:54 +02:00
sani7 8efa935754 websocket
move sending broadcasts back to it's own thread
cause it can lock the even loop
2024-08-28 19:10:44 +02:00
sani7 733858af7a websocket
remove connection_lock that was not required
2024-08-28 19:09:55 +02:00
sani7 ffe446d565 test sim
change timer interval in Sim_base constructor
change start value of slider, dial and thermo
add timer logic to make the sim more attractive
2024-08-27 22:28:18 +02:00
sani7 157f9e9491 UI
add getters for min and max in dial slider and thermo
2024-08-27 22:25:45 +02:00
sani7 5d7b184480 b simulators
Add mutex
Add lock guard in invoke_active_simulator
Add lock guard in changed_UI_items
2024-08-27 17:30:11 +02:00
sani7 a329fd3f03 UI
move every from_json over to use at
2024-08-27 17:25:32 +02:00
sani7 e8f9bc20aa bump timer version 2024-08-27 16:55:25 +02:00
sani7 5d8db074de b message parser
fix command parser returning null when sending empty command
2024-08-27 16:42:14 +02:00
sani7 1efd73cfb5 main
change log location
2024-08-27 16:41:41 +02:00
sani7 33add7b306 b UI
fix bugs discovered by tests
2024-08-27 15:20:13 +02:00
sani7 d47510f58f Test
Add extra ui tests
2024-08-27 15:19:57 +02:00
sani7 ebc2a28241 b message parser
move from [id] json lookup to .at(id)
this gives better exception output
2024-08-27 13:30:20 +02:00
sani7 6dca168b71 b message parser
add try catch around command_parser and event_parser
2024-08-27 13:23:02 +02:00
sani7 35d36a675d b simulators
if diff contains multiple changes in the same UI_item it was pushed in multiple times
now we use a set to check if it is already in the changed or not
2024-08-27 12:50:00 +02:00
sani7 bba27d9e86 websocket
reducing cpu % from 12% to 3%
this by adding this_thread sleep for 1ms
and moving sending of data to the process_messages thread
2024-08-27 11:10:47 +02:00
sani7 ec93fd887c test sim
add color map things to test
2024-08-27 11:10:47 +02:00
sani7 47533c3b3d Tests
fix tests
2024-08-27 11:10:47 +02:00
sani7 b06435f557 UI
Add color map to thermo
2024-08-27 11:10:46 +02:00
sani7 1e3d553cdd Bump color lib version 2024-08-27 11:10:46 +02:00
sani7 179752ec06 test sim
add dial and thermo
2024-08-27 11:10:45 +02:00
sani7 da4300e8de UI
Add dial and thermo
2024-08-27 11:10:45 +02:00
sani7 1bbfe5f907 test sim
add slider change cb
2024-08-27 11:10:45 +02:00
sani7 67a3e2536b UI
standardising type name
2024-08-27 11:10:44 +02:00
sani7 f67f241217 b simulators
m_current_simulator now has "" as default
2024-08-27 11:10:44 +02:00
sani7 484bb730a9 websocket
cleaner alog and elog
2024-08-27 11:10:43 +02:00
sani7 93dbf028a1 b simulators
fix for if sim does not exist
2024-08-27 11:10:43 +02:00
sani7 e26d1f39ff bump color lib version 2024-08-27 11:10:43 +02:00
sani7 291fe0b892 main
set log level to trace
2024-08-27 11:10:42 +02:00
sani7 1863d5649e message parser
move event logs from info to debug
2024-08-27 11:10:42 +02:00
sani7 2df1c67a52 b main
sig int handler check if pointer is not null
2024-08-27 11:10:41 +02:00
sani7 7656402ae9 test sim
Add led
2024-08-27 11:10:41 +02:00
sani7 e06007817c UI
Add extra color for led to UI led class
2024-08-27 11:10:41 +02:00
sani7 5a2fb2de22 simulator base
add shutdown and reboot
2024-08-27 11:10:40 +02:00
sani7 edfe0a91e4 Add initial can debugger 2024-08-27 11:10:40 +02:00
sani7 e56fe54853 b message parser
fix core dump when an event is called and no sim is active
2024-08-27 11:10:39 +02:00
sani7 162018b002 main
use global ptr to sims instead of global instance
and init the global ptr in main
2024-08-27 11:10:39 +02:00
sani7 981d101052 message parser
clean up
2024-08-27 11:10:38 +02:00
sani7 04d9957fd0 main
fix ^C being on the same line as the logging
2024-08-27 11:10:38 +02:00
sani7 0566a4045e spdlog in websocket class
better logging for std::cerr
2024-08-27 11:10:38 +02:00
sani7 3f1cf62d5c Start using spdlog library
b CAN
2024-08-27 11:10:37 +02:00
sani7 d24168e5d1 Add logger submodule 2024-08-24 15:21:26 +02:00