Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: pan-tilt gimbal controls #196

Closed
lida2003 opened this issue Jan 22, 2024 · 6 comments
Closed

Feature Request: pan-tilt gimbal controls #196

lida2003 opened this issue Jan 22, 2024 · 6 comments

Comments

@lida2003
Copy link
Contributor

lida2003 commented Jan 22, 2024

I think a pan-tilt gimbal conrol is very thoughtful design.

This is my video about this 2D gimbal, https://www.youtube.com/watch?v=omBjam52Hq0

So what I'm proposed here: is it possible for Rpanion to intergrate this feature? And then it might be controlled by MP or QGC.

There is pan-tilt HAT board for RaspberryPi and jetson.


EDIT:
related features:

It is something like "Standalone Integrated Camera/Gimbal"

图片

@stephendade
Copy link
Owner

For the pan/tilt, you connect the gimbal directly to the flight controller and control it from there. I'm not sure why you'd need to go via the RPi?

@lida2003
Copy link
Contributor Author

lida2003 commented Jan 22, 2024

For the pan/tilt, you connect the gimbal directly to the flight controller and control it from there. I'm not sure why you'd need to go via the RPi?

Currently, camera and gimble are all connected to Rpi. So I think it's rather simple for the communication. And then Rpi knows what angle it's looking at.

GCS ==> Rpi ==> pan/tilt


EDIT:

If AP has kind of gimbal manager, which tries to manager gimbals. Then is it possible to add Rpi pan/tilt controlled by AP, then controls gimbal, like Standalone Integrated Camera/Gimbal.

@stephendade
Copy link
Owner

Using PWM servo pan/tilt with ArduPilot: https://ardupilot.org/copter/docs/common-camera-gimbal.html#common-camera-gimbal

I do plan to add in the VIDEO_STREAM_INFO MAVLink messages, as it should allow better GCS management of the camera video stream.

@lida2003
Copy link
Contributor Author

Using PWM servo pan/tilt with ArduPilot: https://ardupilot.org/copter/docs/common-camera-gimbal.html#common-camera-gimbal

Hmmmm... I see.

Here is a scenario I'm considering:

a. pan/tilt camera, looking for a specific vechicle
b. now, the camera locks the vechicle at a pan/title angle
c. companion computer need to tell ardupilot to follow and tracking the vechicle
d. during the process of following and tracking, the camera should be always looking at vechicle

The quesiton is what kinds of MAVLink API or message should be used during the process? Any idea or tips?

@stephendade
Copy link
Owner

stephendade commented Jan 23, 2024

So the camera is running some sort of image detection to find the car?

So a typical workflow would be:

  1. Camera detects the vehicle
  2. Camera software calculates relative pitch and yaw angles from drone to vehicle
  3. Camera software sends these values to ArduPilot via MAVLink message (https://ardupilot.org/dev/docs/mavlink-gimbal-mount.html#mav-cmd-do-gimbal-manager-pitchyaw-to-move-to-a-desired-angle-or-at-a-desired-rate)
  4. Ardupilot moves the gimbal accordingly
  5. Repeat as needed

@lida2003
Copy link
Contributor Author

lida2003 commented Jan 28, 2024

Ardupilot has kind of features, which has more info about FC(navigation). Stick to the following diagram might be a good choice.

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants