mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-29 14:29:33 +00:00
docs: small fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user