Skip to content

Commit

Permalink
Merge pull request #2 from goldarte/master
Browse files Browse the repository at this point in the history
Add first point reaching separately from others and some small corrections in configuration files
  • Loading branch information
artem30801 authored Mar 9, 2019
2 parents b1d4094 + dee5974 commit 725d02b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 327 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ venv.bak/
.vscode/settings.json
Server/tests.py
Drone/test_animation/
Drone/animation.csv
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[submodule "Drone/FlightLib"]
path = Drone/FlightLib
url = https://github.com/artem30801/CleverFlightLib.git
#url = https://github.com/goldarte/CleverFlightLib.git
[submodule "blender-csv-animation"]
path = blender-csv-animation
url = https://github.com/artem30801/blender-csv-animation
320 changes: 0 additions & 320 deletions Drone/animation.csv

This file was deleted.

2 changes: 2 additions & 0 deletions Drone/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def animation_player(running_event, stop_event):
frames = play_animation.read_animation_file()
rate = rospy.Rate(1000 / 125)
play_animation.takeoff()
play_animation.animate_frame(frames[0]) #Reach first point at the same time with others
rospy.sleep(5)
for frame in frames:
running_event.wait()
if stop_event.is_set():
Expand Down
6 changes: 3 additions & 3 deletions Drone/client_config.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[SERVER]
port = 25000
host = 192.168.43.168
host = 192.168.1.2
buffer_size = 1024

[FILETRANSFER]
Expand All @@ -11,8 +11,8 @@ host = ntp1.stratum2.ru
port = 123

[COPTER]
id = default
takeoff_height = 1.75
id = copter2
takeoff_height = 1
takeoff_timeout = 7
use_leds = True
animation_file = animation.csv
2 changes: 1 addition & 1 deletion Drone/play_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#FlightLib.init('SingleCleverFlight')
from FlightLib.FlightLib import LedLib

animation_file_path = 'test_animation/test_1.csv'
animation_file_path = 'animation.csv'
USE_LEDS = True


Expand Down
3 changes: 0 additions & 3 deletions Server/server_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ buffer_size = 1024
host = ntp1.stratum2.ru
port = 123
#pool.ntp.org

[FILETRANSFER]
animation = animation.csv

0 comments on commit 725d02b

Please sign in to comment.