Easy to manage litchi waypoints for csv
Project description
litchi_wp 1.0.2
Python package to handle litchi csv waypoints
Example:
from litchi_wp.waypoint import Waypoint
from litchi_wp.enums import ActionType, AltitudeMode
wp = Waypoint(lat=-21.360244, lon=-64.85657, alt=100) # minimal waypoint setup
wp.set_altitude(value=100, mode=AltitudeMode.AGL) # set altitude above ground
wp.set_speed_ms(value=0.1) # stop movement (0 sets cruise speed, so this is the best we can get)
wp.set_action(index=0, actiontype=ActionType.TILT_CAMERA, param=-90) # tilt gimbal for nadir shot
wp.set_action(index=1, actiontype=ActionType.STAY_FOR, param=1) # wait to stabilize
wp.set_action(index=2, actiontype=ActionType.TAKE_PHOTO) # take the photo
output = wp.get_header() # first line for the waypoint file needs to be the header
output += wp.to_line() # adds the waypoint to the output
print(output) # check the result
latitude,longitude,altitude(m),heading(deg),curvesize(m),rotationdir,gimbalmode,gimbalpitchangle,actiontype1,actionparam1,actiontype2,actionparam2,actiontype3,actionparam3,actiontype4,actionparam4,actiontype5,actionparam5,actiontype6,actionparam6,actiontype7,actionparam7,actiontype8,actionparam8,actiontype9,actionparam9,actiontype10,actionparam10,actiontype11,actionparam11,actiontype12,actionparam12,actiontype13,actionparam13,actiontype14,actionparam14,actiontype15,actionparam15,altitudemode,speed(m/s),poi_latitude,poi_longitude,poi_altitude(m),poi_altitudemode,photo_timeinterval,photo_distinterval
-21.360244,-64.85657,100,180,0,0,0,0,5,-90,-1,0,1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,1,0.1,0,0,0,0,-1.0,-1.0
See the docs folder for all the options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
litchi_wp-1.0.2.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for litchi_wp-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf95575c72c4dfba2c643826f82929088853ce7501b6c79d72e7e6cbf2b38ab0 |
|
MD5 | 1f281d44d4790875029c7cebcfd30d16 |
|
BLAKE2b-256 | b8ee1e185a8aec8999926646c7b5f812ae9aefe1bd55c15bbdfe54baf0a5b239 |