Litchi-wp

Latest version: v3.0.0

Safety actively analyzes 682457 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

3.0.0

Return Values

- **waypoint.set_action** returns int instead of bool now (-1, 0, ..., 14).


Exceptions/Errors

- IndexError and ValueError are raised if inputs are off. See docs for more details.

Changed

Waypoint

- **waypoint.set_action** return value changed
- old: **waypoint.set_action**(index=x, actiontype=y, param=z) -> bool
- new: **waypoint.set_action**(action_type=y, param=z) -> int
- returns index of added action or -1 if no free slots are available
- **waypoint.replace_action**(index=x, action_type=y, param=z) raises IndexError
- raises IndexError if index is not between and 14

POI
- **poi** altitude is now an **altitude** object
- **poi** altitude_mode attribute no longer exists

2.1.0

Migration

2.0.0

- waypoint.set_action changed
- old: **waypoint.set_action**(index=x, actiontype=y, param=z)
- new: **waypoint.set_action**(action_type=y, param=z)
- to set specific action index use
- **waypoint.replace_action**(index=x, action_type=y, param=z)

Added

Waypoint

- internal action index handling
- waypoint.set_action returns False if all action slots are full

Changed

Waypoint

- **waypoint.set_action** parameter actiontype changed to action_type
- old: **waypoint.set_action**(index=x, actiontype=y, param=z)
- new: **waypoint.set_action**(action_type=y, param=z)

1.1.1

Migration

1.1.0

- No changes needed.

Added
Waypoint

- Method **from_line** to parse a line from a litchi csv file.
- Method **from_file** to parse a litchi csv file.


Changed

- Switched docstrings to Google style.

Fixed

- Typos in the documentation.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.