docs: small fixes

This commit is contained in:
Oleg Kalachev
2020-01-12 16:04:42 +03:00
parent 6739a685d8
commit 49b436b505
2 changed files with 4 additions and 4 deletions

View File

@@ -151,7 +151,7 @@ Determining whether the copter is turned upside-down:
PI_2 = math.pi / 2
telem = get_telemetry()
flipped = not -PI_2 <= telem.pitch <= PI_2 or not -PI_2 <= telem.roll <= PI_2
flipped = abs(telem.pitch) > PI_2 or abs(telem.roll) > PI_2
```
### # {#angle-hor}
@@ -299,7 +299,7 @@ set_mode(custom_mode='STABILIZED')
### # {#flip}
Universal flip:
Flip:
```python
import math

View File

@@ -195,7 +195,7 @@ new_pose = tf_buffer.transform(pose, frame_id, transform_timeout)
PI_2 = math.pi / 2
telem = get_telemetry()
flipped = not -PI_2 <= telem.pitch <= PI_2 or not -PI_2 <= telem.roll <= PI_2
flipped = abs(telem.pitch) > PI_2 or abs(telem.roll) > PI_2
```
### # {#angle-hor}
@@ -343,7 +343,7 @@ set_mode(custom_mode='STABILIZED')
### # {#flip}
Универсальный флип:
Флип:
```python
import math