Commit Graph

85 Commits

Author SHA1 Message Date
Artem30801
0ccd801fc2 Fixed config responce in client 2020-01-07 17:24:15 +03:00
Artem30801
65447fa3c0 Added config response 2020-01-06 23:16:47 +03:00
Artem30801
24e75f7ed0 config error repr + improved comment loading 2020-01-05 22:58:07 +03:00
Artem30801
3798a5fddc Client with new config system 2020-01-05 17:58:04 +03:00
Artem30801
a8c31a0258 Merge branch 'master' into qt-gui-update 2020-01-02 19:30:17 +03:00
Arthur Golubtsov
4e652d16d9 Client: Decrease connection attempts 2019-12-31 09:09:20 +00:00
Artem30801
63f6bdbe52 Merge branch 'master' into qt-gui-update 2019-12-30 21:57:21 +03:00
Arthur Golubtsov
f22b362da0 Client: Add support for emergency land 2019-12-27 21:55:13 +00:00
artem30801
5435a014f2 Client mapping fix (#58)
* Fix of idle error in clients

* Working fix of mapping get
2019-12-26 18:58:04 +03:00
artem30801
8b4bb7a064 Merged master+server improvements 2019-12-26 15:30:24 +03:00
Arthur Golubtsov
f07fb205a5 Client: Add try/except dummy for getting map 2019-12-17 08:57:53 +00:00
artem30801
ce36c6f1e3 Feature branch: IMPORTANT connection+telemetry+table fixes and improvements (#55)
* .client_connected > .new_client_connected

* Fixed 'confirmation_required' wrapper

* Logging impr

* Changed and optimized a lot checks behaviour

* Added indication of connected/disconnected copters

* update_data_signal changed signature

* Added client removing functionality

* Option for automatically remove disconnected copters from table

* Renaming copters from QT server table on the go + some improvements

* Server: Check if self.clients list is not empty when trying to pop element from it

* Probably fixes behaviour of non-immidiate data sending from server

* Added changing hostname of copter

* Updated config

* Preview of selfchecheck results on double click

* Delete doc_2019-10-16_17-57-17.bashrc

* Update table data models for selfcheck

* Server: modify set id request to message

* Update client_config default file

* Client: modify set new id function

* Client: add avahi-daemon to restart when restarting network

* Client: add new hostname to ssh motd message, do not change hostname if no network restart in config

* Client: add newline to motd message

* Optimized request behaviour

* Client: fix service file and restart order

* Client: Add SO_KEEPALIVE and TCP_NODELAY options to client socket

* Modify to last tests with ping

* Client: remove ping

* Client: select reboot option when change id and add execute command

* Server: Add SO_KEEPALIVE option to server socket

* Server: Change removing copter

* Request resending after disconnection

* Resending improval (for furthrer functionality & fixes

* Fix of client removing behaviour

* Debugging

* Revert dubug code; 'Remove' fix confirmed

* do not clear requests queue

* Update requirements.txt

* Added namespace class to fix resend

* Improvements and simplification of notifier + port to client

* Refactor of telemetry thread

* Simplify lambdas

* Compress hostname check to single regex

* Changes in telemetry

* Refactored formatting of telemetry in table. NOT DONE

* Fix

* Git checkout. REVERT later!

* Conection fix

* Compability fixes

* Update start position

* Fix for reconnection with notifier socket

* Added traceback for pyqt5

* Fixes in new telemetry display

* Added lock to Telemetry

* Fixes for table display

* Fix of doubling line of client in table

* Fix of mass-removing clients from table

* Fix for clinet double-connection+removal

* Fix lock in Telemetry

* Changed signature of response callbacks for better syntax & fixes (all tested)

* Revert "Git checkout. REVERT later!"

This reverts commit 6122352380.

* Server: fix formatters

* Client: Remove telemetry_loop, small refactor of Telemetry class

* Server: Add formatters

* Server: Very small refactor

* Server: Fix checks and formatters

* Client: Fix check_failsafe function, small code refactor

* Client: update default config file
2019-12-05 15:10:21 +03:00
Artem30801
fe69c99fb5 WIP 3 2019-11-28 08:45:33 +03:00
Artem30801
3dc665bd00 WIP 2019-11-25 23:19:07 +03:00
Arthur Golubtsov
7181091c16 client.py: Remove logging settings 2019-11-02 06:51:02 +00:00
Arthur Golubtsov
29a9fe5ceb Return own rights to pi:pi after files manipulation 2019-10-23 13:07:56 +01:00
artem30801
eb61fd0dd8 Test and merge feature branch (#52)
* Added indication of connected/disconnected copters

* Added client removing functionality

* Option for automatically remove disconnected copters from table

* Renaming copters from QT server table on the go + some improvements
2019-10-18 22:52:25 +03:00
Arthur Golubtsov
ca4b4aa1bf Connection rewrite: update client and server connection logic (#49) 2019-10-07 20:05:39 +03:00
Arthus Golubtsov
3d6226c076 Client: Add workaround to load cpu lower when process connections 2019-04-08 13:31:01 +01:00
Artem30801
c04bff12ac added on_broadcast() for client-side 2019-06-26 20:11:01 +03:00
Artem30801
1a3b583073 Added client broadcast binding timeouts and attempts, Closes #30 2019-06-17 12:32:48 +03:00
Arthur Golubtsov
b94008bc56 Comment print functions, return logger back 2019-06-14 17:15:05 +03:00
Artem30801
49d05962a8 Error handling fixes (errno attribute error) 2019-05-21 21:45:42 +03:00
Artem30801
ca6a1be254 Temporary fix 2019-05-09 12:45:23 +03:00
Artem30801
67a31d70ae Initial commit of new animation_lib and async tasking_lib with suppurt of managing tasks on-the-go and interrupt them immediately. Improvements in FlightLib (including better selfcheck code) and client.
Massive testing required (will be done soon)
2019-05-05 22:24:39 +03:00
Artem30801
09649c96db Another logging tweaks 2019-04-19 11:26:35 +03:00
Artem30801
f35d25a7b4 RL 2019-04-19 09:33:29 +03:00
Artem30801
838337b2b1 Still ros logging 2019-04-19 09:29:13 +03:00
Artem30801
d79bb7d0c6 Ros logging fixes... 2019-04-18 22:17:48 +03:00
Artem30801
e2f0e40c1b Logging with ros fix 2019-04-18 21:04:15 +03:00
Artem30801
efa081efc3 Minimal operateable server+copter client. Many improvements, including architecture improvements 2019-04-16 23:03:24 +03:00
Artem30801
ec05257e4e Fixing client reconnection 2019-04-09 10:38:35 +03:00
Artem30801
ab49fae640 Fixes 2019-04-09 09:18:19 +03:00
Artem30801
1dd0335308 Client ad server sharing same connection handler now 2019-04-09 08:59:44 +03:00
Artem30801
f8262f049e Merge branch 'alpha' of https://github.com/artem30801/CleverSwarm 2019-04-08 20:30:21 +03:00
Artem30801
8d1589fb47 First working client 2019-04-08 20:28:24 +03:00
Artem30801
ba071a239d New server-client release 2019-04-08 18:20:02 +03:00
Arthur Golubtsov
958dad7901 Add common and private coordinate shift 2019-03-29 20:35:39 +00:00
artem30801@gmail.com
7fc61bbe19 Msg receiving debug prints 2019-03-29 20:02:55 +03:00
artem30801@gmail.com
a57a70a38e Added check for animation file exceptions. Closes #19 2019-03-29 17:50:56 +03:00
Arthur Golubtsov
93a248c2e4 client: add clever service restart after map uploading 2019-03-29 11:50:49 +00:00
artem30801
785fec1bbd parent folder 2019-03-26 02:57:23 +00:00
artem30801@gmail.com
6f7bf5a101 Empty selfcheck fix 2019-03-28 19:44:28 +03:00
artem30801@gmail.com
72cbd488ff Msg format changed to pure json 2019-03-28 19:35:56 +03:00
artem30801@gmail.com
690fd4a1e3 Added led test mode 2019-03-28 18:33:37 +03:00
Arthur Golubtsov
88974e5174 Fix merge again 2019-03-28 15:27:03 +00:00
artem30801@gmail.com
4e4102e656 Writing received broadcast to config
Shutdown on keyboard interrupt in reconnect
2019-03-28 18:22:03 +03:00
Arthur Golubtsov
ba67632ee5 Remove FlightLib submodule 2019-03-28 15:19:38 +00:00
artem30801@gmail.com
8551933cd6 Request for battery on start 2019-03-25 16:53:05 +03:00
artem30801@gmail.com
a08a6267f0 Deleted ordered dict 2019-03-25 16:17:40 +03:00