Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit beacf4c

Browse files
committed
Examples: set document character set encoding
The recent addition of the copyright symbol into the code causes issues on some versions of Python - the scripts don't run. We now define the encoding according to https://www.python.org/dev/peps/pep-0263/
1 parent 15df123 commit beacf4c

File tree

13 files changed

+38
-0
lines changed

13 files changed

+38
-0
lines changed

examples/channel_overrides/channel_overrides.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36

examples/create_attribute/create_attribute.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36

examples/create_attribute/my_vehicle.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36

examples/drone_delivery/drone_delivery.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
drone_delivery.py:

examples/flight_replay/flight_replay.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
flight_replay.py:

examples/follow_me/follow_me.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
followme - Tracks GPS position of your computer (Linux only).

examples/gcs/microgcs.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
"""

examples/guided_set_speed_yaw/guided_set_speed_yaw.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
13

24
"""
35
© Copyright 2015-2016, 3D Robotics.

examples/mission_basic/mission_basic.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
mission_basic.py: Example demonstrating basic mission operations including creating, clearing and monitoring missions.

examples/mission_import_export/mission_import_export.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
mission_import_export.py:

examples/performance_test/performance_test.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
performance_test.py:

examples/simple_goto/simple_goto.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
simple_goto.py: GUIDED mode "simple goto" example (Copter Only)

examples/vehicle_state/vehicle_state.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
14
"""
25
© Copyright 2015-2016, 3D Robotics.
36
vehicle_state.py:

0 commit comments

Comments
 (0)