Changed coord system, PID controllers exhibiting sensible behavior;
simulation.py: z coord points up in body and inertial frames, rearranging variable indices to match gazebo calculations (pos, vel, orientation, angular rate), propeller reset does not overwrite params, thrust-constant based thrust function. physics.py: rearranged state variable indices, changed d(velocity) equations so forces act in correct direction, given pwhich direction is assumed as positive angle. Previously positive torque was causing negative x/y motion due to inverted axes. helpers.py: bugfix in calculating control allocation matrix. x-moment is due to y-distances. Approproate signs conventions for positive moments. control.py: New iteration of controllers (Att, Alt, Pos, Controller) which work properly when cascaded.
Please register or sign in to comment