Revert "animation_lib: delete unnecessary condition"

This reverts commit c9960fdbdc.
This commit is contained in:
Arthur Golubtsov
2019-05-31 13:37:14 +00:00
committed by Artem30801
parent 09427f32bb
commit 2e13d05b06

View File

@@ -85,7 +85,11 @@ def convert_frame(frame):
def execute_frame(point=(), color=(), yaw=float('Nan'), frame_id='aruco_map', use_leds=True,
flight_func=FlightLib.navto, flight_kwargs={}, interrupter=interrupt_event):
flight_func=FlightLib.navto, flight_kwargs=None, interrupter=interrupt_event):
if flight_kwargs is None:
flight_kwargs = {}
flight_func(*point, yaw=yaw, frame_id=frame_id, interrupter=interrupt_event, **flight_kwargs)
if use_leds:
if color: