dronekit / dronekit-python

DroneKit-Python library for communicating with Drones via MAVLink.
https://readthedocs.org/projects/dronekit-python/
Apache License 2.0
1.63k stars 1.45k forks source link

How to operate ardupilot by position information by VIVE tracker #876

Open otsuka-kohei opened 6 years ago

otsuka-kohei commented 6 years ago

Hello. I am drone begginer.

I am trying to hover a pixhawk px4 drone at some position in room. VIVE tracker provides high precision position data. I would like to set target position and actual position (which is provided VIVE tracker) to px4, and hover px4 that target position automaticaly.

I found a solution that uses vehicle#channels#overrides method and my hand made PID control code. But it looks like danger way.

Could you tell me better solution for px4 automatic hoverring with VIVE tracker?

Thank you.

peterbarker commented 6 years ago

On Thu, 15 Nov 2018, Otsuka Kohei wrote:

I am trying to hover a pixhawk px4 drone at some position in room. VIVE tracker provides high precision position data. I would like to set target position and actual position (which is provided VIVE tracker) to px4, and hover px4 that target position automaticaly.

I found a solution that uses vehicle#channels#overrides method and my hand made PID control code. But it looks like danger way.

Could you tell me better solution for px4 automatic hoverring with VIVE tracker?

Both PX4 and ArduPilot (the most popular of the autopilot systems using Arduilot) allow offboard control using set_position_target_local_ned and similar messages.

otsuka-kohei commented 6 years ago

Almost automatic control methods need GPS and balometer and these measulement function is not available in room.Could tell me alternative method like Dead Reckoning based technology?

otsuka-kohei commented 6 years ago

I would like to use a method like below.
simple_go_up(power_percentage, duration_ms)