Commit Graph

282 Commits

Author SHA1 Message Date
Arthur Golubtsov
f07fb205a5 Client: Add try/except dummy for getting map 2019-12-17 08:57:53 +00:00
Arthur Golubtsov
16da689b96 Client: remove unnecessary interruption returns from takeoff 2019-12-13 07:25:16 +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
Arthur Golubtsov
7e8e97f88c Update client_setup to allow connection to hidden ssids 2019-11-28 17:50:35 +03:00
Arthur Golubtsov
9c518a8109 Client: Add visual_pose_service setup 2019-11-28 15:40:07 +03:00
Arthur Golubtsov
2afa294cc4 Client: update default config 2019-11-28 15:22:10 +03:00
artem30801
fe3f5700a4 Removed unnecessary (and not working) yaw angle check 2019-11-24 23:16:19 +03:00
Arthur Golubtsov
eec82af58f Client: Add landing if position delta is bigger than value from client_config 2019-11-24 07:56:33 +00:00
Arthur Golubtsov
3cfb4a9587 Animation update delay (#56)
* Client: Make time_delay programmable from animation file

* Client: Add yaw parameter in client_config
2019-11-22 08:04:46 +03:00
Arthur Golubtsov
d4c002fb72 Client: Add state counter for mode glitch avoidance 2019-11-21 07:51:28 +00:00
Arthur Golubtsov
7312d3ab57 Client: Add under voltage detection for logging 2019-11-19 20:56:20 +00:00
Arthur Golubtsov
58f5293970 client_config: Add group for visual_pose_watchdog 2019-11-19 20:27:43 +00:00
Arthur Golubtsov
cbaf645999 Client: Add config parser and 3 variants of emergency actions to visual pose watchdog 2019-11-19 20:27:03 +00:00
Arthur Golubtsov
04d3a916cd Client: rename and modify CLEAR_TASK_WHEN_LAND to CLEAR_TASKS_WHEN_EMERGENCY 2019-11-19 20:25:34 +00:00
Arthur Golubtsov
90b0a973d9 Client: Add LOG_CPU_AND_MEMORY option 2019-11-19 13:55:56 +00:00
Arthur Golubtsov
dcfdfe221e Client: Add CLEAR_TASKS_WHEN_LAND option for telemetry thread 2019-11-19 12:12:13 +00:00
Arthur Golubtsov
4da20fa9c7 tasking_lib: Add get last task name function 2019-11-19 12:10:55 +00:00
Arthur Golubtsov
1a038f95f1 Client: Add land_timeout 2019-11-19 07:36:51 +00:00
Arthur Golubtsov
5219695d40 Client: Setup logger for visual pose watchdog 2019-11-18 05:52:45 +00:00
Arthur Golubtsov
80010ca0e8 Client: Increase visual pose watchdog timeout 2019-11-16 10:08:14 +00:00
Arthur Golubtsov
027f01e036 Client: Fix /etc/hosts modifying 2019-11-15 09:03:42 +00:00
Arthur Golubtsov
fcba38fdfa Client: Fix /etc/hosts file with hostname.local, this is needed for ROS 2019-11-15 06:49:20 +00:00
Arthur Golubtsov
466954c225 Client: Add visual_pose_watchdog node 2019-11-15 06:30:09 +00:00
Arthur Golubtsov
ea6c4af6af Client: Update execute command 2019-11-14 06:46:28 +00:00
Arthur Golubtsov
9e95e938b4 Client: Add load_params response 2019-11-13 08:44:39 +00:00
Arthur Golubtsov
ac8c459d03 mavros_mavlink: Add load_param_file function 2019-11-13 08:44:39 +00:00
Arthur Golubtsov
39c6a4c76a animation_lib: Return landing points removing 2019-11-12 07:20:01 +00:00
Arthur Golubtsov
c2b1e4d299 Add failsafe and power parameters for clever 2019-11-08 10:50:34 +03:00
Arthur Golubtsov
5328d7c20b Client: Add threading lock for get_telemetry service 2019-11-07 05:12:17 +00:00
Arthur Golubtsov
4db18395eb Client: Catch ValueError when count battery percentage 2019-11-05 22:50:35 +00:00
Arthur Golubtsov
bc4c4644e0 Client: replace FlightLib.get_telemetry to direct get_telemetry service proxy to resolve proxy service from imported module error 2019-11-05 18:56:00 +00:00
Arthur Golubtsov
43390f9eb4 tasking_lib: Setup loggers, fix task waiting bug, modify handling exceptions 2019-11-02 06:56:32 +00:00
Arthur Golubtsov
a184293621 Client: Setup loggers for animation, messaging, client and tasking lib, fixed telemetry exceptions handle 2019-11-02 06:54:25 +00:00
Arthur Golubtsov
96cb768039 FlightLib: Change message type to logger.debug 2019-11-02 06:51:59 +00:00
Arthur Golubtsov
7181091c16 client.py: Remove logging settings 2019-11-02 06:51:02 +00:00
Arthur Golubtsov
b7b7a1ba1b Client: Setup animation logger 2019-11-02 06:46:45 +00:00
Arthur Golubtsov
e656498478 Client: Fix move_start function 2019-11-02 01:16:25 +00:00
Arthur Golubtsov
a72c447209 Client: Modify floor frame broadcast 2019-11-01 16:16:37 +00:00
Arthur Golubtsov
4f59f397fe mavros_mavlink: Update get_calibration_status 2019-11-01 16:16:37 +00:00
Arthur Golubtsov
e50b33611b Client: Update battery status format 2019-11-01 14:22:34 +00:00
Arthur Golubtsov
e5c25eac4f Client: Fix telemetry thread 2019-10-31 16:41:11 +00:00
Arthur Golubtsov
370bee5c89 mavros_mavlink: Modify get_calibration_status 2019-10-31 16:41:11 +00:00
Arthur Golubtsov
b17607e4c3 FlightLib: Fix check ros services function 2019-10-31 16:41:11 +00:00
Arthur Golubtsov
05303cc4b7 Client: Add response for telemetry 2019-10-30 04:07:34 +00:00
Arthur Golubtsov
fbff10cc25 Client: add selfcheck to telemetry 2019-10-25 18:05:59 +01:00
Arthur Golubtsov
f8ae6c6263 Client: Modify default config file 2019-10-25 17:23:22 +01:00
Arthur Golubtsov
0f5b5f0346 Client: Add telemetry get and send thread 2019-10-25 17:22:49 +01:00
Arthur Golubtsov
46802667bd Client: modify move_start function 2019-10-25 15:32:49 +01:00
Arthur Golubtsov
dc85d9bd3f animation_lib: add get_start_xy function 2019-10-25 15:18:56 +01:00
Arthur Golubtsov
d33cc0c32d Client: modify calibration response and reduce timeout in service check 2019-10-25 12:30:21 +01:00