Currently drone can follow a chosen target in GUIDED mode with Velocity commands with Proportional Controller. There is a visual tracking running, that way the distance(in pixels) to the center is the error for the controller.
I want to utilize a PID controller as my next goal. And, later on I want to implement a method to do object avoidance with a lidar.
Alternative to controlling the vehicle with Velocity command could be simple go to, the target’s relative location could be calculated with calibrated camera and known altitude.
For my understanding if companion computer sends MAV_CMD_CAMERA_TRACK_POINT messages with point’s location scaled to 0-1 from the picture, it will be tracking it in Auto mode?
Alternative to controlling the vehicle with Velocity command could be simple go to, the target’s relative location could be calculated with calibrated camera and known altitude.
Here is how to calculate relative distance without GPS.