Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Add additional controller diagrams #427

Closed
hamishwillee opened this issue Jan 9, 2018 · 14 comments
Closed

Add additional controller diagrams #427

hamishwillee opened this issue Jan 9, 2018 · 14 comments

Comments

@hamishwillee
Copy link
Collaborator

As discussed in PX4/PX4-Autopilot#8316 (comment)

@bresch and @Stifael volunteered!

@bresch
Copy link
Member

bresch commented Jan 31, 2018

Here is the pitch controller (roll is the same but with phi and p instead of theta and q)
fw_pitch_controller
@tubeme FYI

@hamishwillee
Copy link
Collaborator Author

Thanks very much @bresch ! I hope to get these into draw.io next week.

@hamishwillee
Copy link
Collaborator Author

@bresch Thank you for this. I've created a version on draw.io here you can edit further: https://drive.google.com/file/d/1ibxekmtc6Ljq60DvNMplgnnU-JOvKYLQ/view?usp=sharing

image

A few statements/questions:

  1. The subscript r is "required" I presume? I have changed this everywhere to d (desired) as that is consistent with other image.
  2. Everything here is a scalar right (ie I have removed all bold)
  3. Please check I got it right.
  4. What "words" would you like with this - see https://dev.px4.io/en/flight_stack/controller_diagrams.html#multicopter-position-controller

Once you're sure this is OK I'll modify to create the roll controller.

@Stifael @bkueng Anything you would like to suggest/add for this?

@bresch
Copy link
Member

bresch commented Feb 7, 2018

@hamishwillee Thank you for translating it into draw.io.

  1. You did it right, I didn't respect the notation there!
  2. Correct, however I'm thinking about including roll and yaw in the same diagram. It would also be nicer to have a vector going to the Jacobian block. I don't want to have mathematician trying to kill me xD
  3. I will do the modifications and tell you when I'm done

@hamishwillee
Copy link
Collaborator Author

Thanks very much. I hope you can also help with "4" :-)

@bresch
Copy link
Member

bresch commented Feb 16, 2018

@hamishwillee I updated the schematic and it includes roll and yaw now.
fw_attitude_controller

@hamishwillee
Copy link
Collaborator Author

Thanks @bresch . PR created #464
This just needs some words from you and @Stifael - comments on inputs, outputs, anything you think is relevant and not obvious from the diagram.

@tubeme
Copy link

tubeme commented Feb 19, 2018

Just something I cannot understand. I suppose this is the Pitch controller for airplane because there is airspeed measured.

If there is no airspeed how the diagram changes? What do we use instead of Vr?

@bresch
Copy link
Member

bresch commented Feb 19, 2018

@tubeme When there is no pitot tube, the airspeed is estimated using the ground speed (but wind will degrade performance)
Check my comment here for more details on the controller: #464 (comment)

@tubeme
Copy link

tubeme commented Feb 20, 2018

Thanks @bresch prior to 1.7 ie in 1.6.5 we had the option to choose a "not valid" for the FW_ARSP_MODE in this situation we neither use the ground speed nor the airspeed in the algorithm. Now in 1.7 there are only two options for the mode Air speed and ground speed. That is why I'm a little confused. If we choose not valid in 1.6.5 then where is this airspeed calculated from? this concerns the TECS.

@bresch
Copy link
Member

bresch commented Feb 21, 2018

@tubeme I think I was wrong, in airspeedless mode, it appears that the ground speed is not used, gain scheduling for the FW attitude controller is then disabled and no correction is made in TECS using airspeed feedback (it's open loop).

@hamishwillee
Copy link
Collaborator Author

@bresch
Copy link
Member

bresch commented Jan 18, 2019

@hamishwillee Yes, we can still open an other issue to discuss about the other missing diagrams.

@hamishwillee
Copy link
Collaborator Author

This is now closed. There are other diagrams to do, but the ones discussed here are complete

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

No branches or pull requests

3 participants