Commit Graph

39 Commits

Author SHA1 Message Date
Artem30801
8a57938da7 Added cross-platform set_keepalive function 2020-04-07 15:51:13 +03:00
Artem30801
fe85255a87 Fixed sending (requesting) of empty files 2020-02-28 16:55:16 +03:00
Artem30801
881a3a00da Tested and fixed filetransfer and request 2020-01-23 21:39:27 +03:00
Artem30801
44264a020c Added get_file method 2020-01-23 17:55:38 +03:00
Artem30801
0e02e2ee9d Updated messaging. File requests + args 2020-01-23 17:05:59 +03:00
Artem30801
2a1e16c612 Debug code for messaging lib 2020-01-21 15:26:29 +03:00
Artem30801
1f7dd62d5a Removed unnececary selector unregistering 2020-01-13 18:32:06 +03:00
Artem30801
543a645097 Fix logging optimization 2020-01-05 22:08:39 +03:00
Artem30801
81c6961841 Hadling of missing command\key erorr differently 2020-01-05 17:57:29 +03:00
Artem30801
ccab44af56 Perserving dict order in messages and configs 2020-01-05 17:16:39 +03:00
Artem30801
0f2574554d Slight improvemnts 2020-01-05 12:37:33 +03:00
Artem30801
98e4e0190c Merge fixes and improvements 2020-01-03 15:36:54 +03:00
Artem30801
0ed088a99d Improved notifier closing and error handling + fixes 2020-01-02 19:26:27 +03:00
Artem30801
63f6bdbe52 Merge branch 'master' into qt-gui-update 2019-12-30 21:57:21 +03:00
Artem30801
6ffef1a0bf Optimized imports and naming, started rework of config sending 2019-12-30 19:43:13 +03:00
artem30801
853cc0d3fa File sending fix (#61)
* Changed sending buffering

* Connected config to buffer size in clients

* Update data logging for file transmit

* Fix logging when receive data

Co-authored-by: Arthur Golubtsov <goldartt@gmail.com>
2019-12-26 18:23:10 +03:00
artem30801
8b4bb7a064 Merged master+server improvements 2019-12-26 15:30:24 +03: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
Arthur Golubtsov
9f7fda0b16 messaging: add whoami option 2019-11-02 06:59:32 +00:00
artem30801
576e1a52fa Feature branch - fix for removing clients from qt table (#54)
Fixed removing clients from table.
2019-11-02 00:29:06 +03:00
Arthur Golubtsov
167fafbbb0 file transfer: return rights to pi:pi after file receive 2019-10-29 16:03:31 +03:00
Arthur Golubtsov
82a434b4ca Add ability to send folder with launch files 2019-10-29 15:54:08 +03: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
Arthur Golubtsov
b94008bc56 Comment print functions, return logger back 2019-06-14 17:15:05 +03:00
Artem30801
b6cc84e474 Another logging approach... 2019-05-12 14:25:55 +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
1ae3438c15 Fixes: receiving multiple messages at once, added rospy init 2019-04-18 20:48:59 +03:00
Artem30801
fc5a15510e Improvements in client-side 2019-04-18 19:59:41 +03:00
Artem30801
efa081efc3 Minimal operateable server+copter client. Many improvements, including architecture improvements 2019-04-16 23:03:24 +03:00
Artem30801
733b4e84c1 Fix request 2019-04-09 23:11:45 +03:00
Artem30801
b9008204ee Fix copter id getter 2019-04-09 10:49:18 +03:00
Artem30801
db04cc794a fix "requst" 2019-04-09 10:41:32 +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
ba071a239d New server-client release 2019-04-08 18:20:02 +03:00