Motor Power output, SITL

I want to change the weight (mass) of my model in the SITL, from 1.5kg to say about 3~4kg with a 4s. how do i change the gazebo motor parameters accordingly? in the SDF: what are units of motorconstant? etc?
My guess is that its the following to change… what is the motor power parameter in VTOL?

    <plugin name='front_right_motor_model' filename=''>
standard vtol uses the same motor with:

standard vtol has an additional pusher motor with:

plane has one motor with:

prop config:

----rotor config-----
   <link name='rotor_0'>
      <pose>0.3 -0.3 0.4 0 -0 0</pose>
        <pose>0 0 0 0 -0 0</pose>

one more parameter in the VOTL application, changing this did not show any effect:
 * Motor max power
 * Indicates the maximum power the motor is able to produce. Used to calculate
 * propeller efficiency map.
 * @unit W
 * @min 1
 * @max 10000
 * @increment 1
 * @decimal 0
 * @group VTOL Attitude Control


The motor constant defines the relationship between produced thrust and rotational speed of your
The relation is
thrust = rot_speed*rot_speed * motor_constant

So the units are N * s^2

That parameter you found (VT_POWER_MAX) will have no effect. It’s used to calculate the
propeller slipstream velocity for tailsitters.

1 Like

Hi Tumbili,
btw. got the vtol tailsitter flying full missions in SITL :smiley:

Velocity is in rads per second?

Correct. Damn messge telling me the post must have at least 20 characters.

Thanks… lol… sorted all the motor issues… now to change the wing… :smiley:

Can the rigging angle of the wing be changed by forward and upward parameters in the SDF in liftdrag?

@Arjuna.Mendis In the sdf file which includes the wings for the plane you should be able to specify the orientation of each wing in terms of forward and up axis I think.

Hi, All is well, managed to change wing parameters etc. except I need to increase the body velocity to reach about 30~35 m/s and I found these parameters
and a line of code in the gazebo_motor_model.cpp:
double scalar = 1 - vel / 25; // at 50 m/s the rotor will not produce any force anymore
Setting the FW parameters does not allow the velocity to be changed drastically. I’m not entirely sure why 25 is hard coded in the above line of code


@Arjuna.Mendis This is a hack! The reason for this was to account for the fact that a propeller will produce less thrust when the air inflow becomes larger. The linear relation is not correct, one could use better approximations. Why don’t you implement something more realistic in terms or parameters which have to be specified in the sdf file when attaching a motor/propeller to the model?

Lol…thanks…will give it a go…

@Arjuna.Mendis That would be fantastic, looking forward to it!

Hey Guys ! I’m trying to simulate a tricopter with a tiltrotor(servo). I set channels in the following manner:

[1] - Front Right
[2] - Front Left
[3] - Back motor
[4] - servo

I have modified the init/ekf2/file to use the Y+ mixer file (Rest are same as IRIS file). In the SDF if I remove the channel 4, The all three main rotors arm properly. But when I add channel 4 for servo (Copied code from plane SDF), the back motor doesnt arm (But the servo does though). Mind helping me out ?

@ganeshrk95 can you create a new post to discuss? Please share your mixer files as well.

Hi…i am a new user here. As per my knowledge an electric motor will try to maintain the kv regardless of load. The torque is determined by how many poles and kv. Higher pole count and lower kv will produce more torque allowing you to spin a bigger prop. Power output is affected directly from load, if you put a larger prop the motor will pull more current to try to maintain the kv. Volts x amps = watts. So depending on the prop you wish to turn you should select the power train not the other way around.

pcb assembly supplier