Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
julienthevenoz committed Apr 11, 2024
1 parent be2b630 commit 44db5a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion crazyflie/config/crazyflies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ all:
stabilizer:
estimator: 2 # 1: complementary, 2: kalman
controller: 2 # 1: PID, 2: mellinger

# ring:
# effect: 16 # 6: double spinner, 7: solid color, 16: packetRate
# solidBlue: 255 # if set to solid color
Expand Down
2 changes: 1 addition & 1 deletion crazyflie_examples/crazyflie_examples/infinite_flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main():

# pm_state : 0 = on battery 1 = charging 2 = charged 3 = low power 4 = shutdown
flight_counter = 1

while True:
print('takeoff')
allcfs.takeoff(targetHeight=1.0, duration=2.0)
Expand Down
4 changes: 1 addition & 3 deletions systemtests/test_flights.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ def setUp(self):
self.test_file = None

# launch server
current_env = None
# src = "source " + str(Path(__file__).parents[3] / "install/setup.bash") # -> "source /home/github/actions-runner/_work/crazyswarm2/crazyswarm2/ros2_ws/install/setup.bash"
command = f"{self.src} && ros2 launch crazyflie launch.py"
if TestFlights.SIM :
command += " backend:=sim" #launch crazyswarm from simulation backend
current_env = os.environ.copy()
self.launch_crazyswarm = Popen(command, shell=True, stderr=PIPE, stdout=PIPE, text=True,
start_new_session=True, executable="/bin/bash", env=current_env)
start_new_session=True, executable="/bin/bash")
atexit.register(clean_process, self.launch_crazyswarm) #atexit helps us to make sure processes are cleaned even if script exits unexpectedly
time.sleep(5)

Expand Down

0 comments on commit 44db5a3

Please sign in to comment.