Those warnings indicate that there is likely a mismatch between the PWM values being sent by your controller and what the SITL simulation is expecting. Here are some things to check:
- Make sure the PWM output range from your controller matches the input range expected by the SITL simulation. For example, jMAVSim expects PWM values between 1000-2000 microseconds by default. If your controller is sending values outside of that range, they will be clamped and not have the desired effect.
- Double check that your controller code is actually updating the PWM values correctly. Print or log the outputs to verify they are in the valid range and changing as expected when you try to command maneuvers.
- Try sending direct throttle/steering commands to the simulation using the MAV_CMD_DO_SET_SERVO command instead of raw PWM. This bypasses the PWM conversion and directly sets the control surfaces. If the drone responds to this but not PWM, it points to a conversion issue.
- Make sure your controller is publishing commands at a fast enough rate for the simulation. If the control rate is too low, the drone may not respond as expected.
- Check that your controller has the correct frame of reference and signs on the control outputs for what the simulation is expecting. For example, a positive roll PWM value may correspond to a negative roll rotation depending on the convention.
I hope this helps. However, I can't prviode you extact details of the error occurance, as I don't have the .m file or some part of the codes.