Closed sethmnielsen closed 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.
Finished in #9.
Here is the current architecture:
To pass the rotor values to FlyingPawn, a
MultirotorPawnEvents::ActuatorsSignal
containing a vector ofMultirotorPawnEvents::RotorInfo
objects is emitted inMultirotorPawnSimApi::updateRendering()
; that signal gets caught by the functionAFlyingPawn::setRotorSpeed()
, which is where the rotation values for the props of the multirotor mesh are set. The only parameter tosetRotorSpeed()
is a vector ofRotorInfo
(speed, direction, thrust, control signal) objects.Tasks:
TiltrotorInfo
holding rotor tilt and aileron statessetRotorSpeed()
that accepts new containerActuatorsSignal
- atypedef
forcommon_utils::Signal<const std::vector<RotorInfo>&>
- that holds new container