Attitude Control Class

Hello! This might be hard to answer but I was wondering where in the libraries or ArduCopter code the children classes are specified to run instead of the parent?

For example... we have the rate_controller_run() virtual function in AC_AttitudeControl which is equated to zero because we won't be using it....

see "attach1"

But instead we would be using the rate_controller_run() of AC_AttitudeControl_Multi (see "attach2")... which inherits from the AC_AttitudeControl.... But as we can see.... rate_controller_run is being run from the AC_AttitudeControl class not the AC_AttitudeControl_Multi as seen in "attach3"...

and I would like to ask where in the code does it assign the Multi? (of course that depends on the frame chosen by the user but in my case I use Multi)...

Thanks!

attach1.png

attach2.png

attach3.png

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…