BluEye-Robotics / blueye.sdk

A Python package for remote control of Blueye underwater drones.
GNU Lesser General Public License v3.0
17 stars 4 forks source link

Add custom divisor parameter to log download function #97

Closed sindrehan closed 2 years ago

sindrehan commented 2 years ago

By default the logcsv endpoint will downsample csv logs from 10 Hz to 1Hz when downloading, this behaviour can be modified with the divisor query. Should be straight forward to add this as an optional argument when downloading logs.

https://github.com/BluEye-Robotics/blueye.sdk/blob/fc0b321f8655969345302a6a29be064273acb1fe/blueye/sdk/logs.py#L51

Should also extend the parameter list in http documention: https://github.com/BluEye-Robotics/blueye.sdk/blob/fc0b321f8655969345302a6a29be064273acb1fe/http-api.yml#L112-L126