byu-magicc / vtol-AirSim

A fork (copy) of AirSim's Unreal Engine Plugin with added functionality for VTOL aircraft.
12 stars 4 forks source link

Add ability to change rotor angles, aileron angles of TiltrotorPawn in code #2

Closed sethmnielsen closed 3 years ago

sethmnielsen commented 3 years ago

Here is the current architecture:

To pass the rotor values to FlyingPawn, a MultirotorPawnEvents::ActuatorsSignal containing a vector of MultirotorPawnEvents::RotorInfo objects is emitted in MultirotorPawnSimApi::updateRendering(); that signal gets caught by the function AFlyingPawn::setRotorSpeed(), which is where the rotation values for the props of the multirotor mesh are set. The only parameter to setRotorSpeed() is a vector of RotorInfo (speed, direction, thrust, control signal) objects.

Tasks:

sethmnielsen commented 3 years ago

The default params (like rotor poses) for the Tiltrotor are currently hard-coded in TiltrotorSimpleParams.hpp, which calls initializeRotorQuadX() defined in TiltrotorParams.hpp. I think these are the two files that will need to be modified with values for the aircraft in vtol-sim.

sethmnielsen commented 3 years ago

Finished in #9.