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

How to customize internal flight controller for drones? #4746

Closed
haildceu1 opened this issue Nov 15, 2022 · 0 comments
Closed

How to customize internal flight controller for drones? #4746

haildceu1 opened this issue Nov 15, 2022 · 0 comments

Comments

@haildceu1
Copy link

haildceu1 commented Nov 15, 2022

Is there any way to customize internal flight controller for drones?
The document says Airsim has a built-in flight controller called simple_flight, which uses a cascade of PID controllers. How could I change them into custom controllers like Lead-Lag Compensator or Geometric Control.
I’m aware that Quadrotor flight controller receives desired state input such as position and angle level, and ouputs 4 PWM values to control the propellers with actual state. So I presume it’s possible to replace what’s between?
I know there are some feasible options available right now:

  1. using external controller such as PX4
  2. using python API “moveByMotorPWMsAsync” with calculated PWM values in python files

But I’m completely unfamiliar of PX4, and my ultimate goal is to achieve a total-simulation game (no hardware involved) in unreal engine, with controlling UI where you can change types and parameters of controllers. Considering UE’s limited support for python, I’m afraid none of these options would work.

I also noticed in a6aee1c?diff=split
the author showed specific details of making simple_flight extensible for Adaptive Controller. Does this apply to all other controllers? Thank you!

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

1 participant