Motor issues when running ESC calibration
-
@rdjarvis , besides the PID tuning params, you need to make sure the min and max rpms in PX4 match what you have in esc params:
VOXL_ESC_RPM_MIN
andVOXL_ESC_RPM_MAX
. did you set these PX4 params to 4000 and 40000? (btw in your test, was the motor able to reach 40K rpm? with my more aggressive prop, i think i had about 35K max).It is not a big deal if your ESC param in the ESC itself has maximum rpm that is higher than the motor can achieve. The ESC will just try to apply 100% power and will reach whatever rpm the motor can run at 100% power. But in PX4 params, you need to make sure that you set the maximum rpm that is actually achievable, otherwise PX4 will request the rpm that ESC cannot achieve and the drone will be less stable at maximum thrust.
-
Yes, we confirmed the Params in PX4 QGC are identical to the Params in VOXL. Yes, Max RPM when performing calibration tests was 42k. I set it at 40k in both PX4 and VOXL-esc-params.
No response from throttle input when armed. We recalibrated the Radio and ensured RC Channel 3 was responding to Tx input.
-
@rdjarvis , have you tried using actuator test to spin the motors (obviously be careful if props are on, or remove the props for the test). The actuator test should allow you to test the motors in the full range that you specified
-
@Alex-Kushleyev Good morning.
Yes, Actuator tab in Vehicle Setup in QGC has VOXL ESC selected, motor directions are correct, and motor slider controls the motors.
Ch 3 RC Throttle Tx input does not apply actual throttle inputs when UAV is armed in any flight mode.
RC calibration was successful and RC Ch3 reacts correctly when Spektrum Tx mode 2 throttle stick is manipulated.
I will get you a log this morning when I'm clear of my meetings.
As always, thank you,
RDJ -
@rdjarvis, yes lets get a log where you are in manual flight mode (thrust, roll, pitch, yaw control) and you arm the drone and just move the thrust stick up and down a few times trying to take off. As a separate test, at idle throttle try to move roll and pitch stick to see the response from those inputs.
It looks like a px4 configuration issue but i am not sure what exactly.
-
@Alex-Kushleyev Awesome, will do.
Thank you,
RDJ -
Also please check the value you use for the following param THR_MDL_FAC. Just curious about the current value, it should be close to one (0.7-0.8) for rpm control, but i can help you compute it exact value.
https://discuss.px4.io/t/thrust-curve-compensation-through-thr-mdl-fac/13207/3
-
@Alex-Kushleyev How do I upload a log? The forum say I do not have permission.
-
Upload it here and you can view results too. https://review.px4.io/ . The official flight review does not plot our custom esc data, but i will let you know how to view it later. I can download the log from the link above after you upload it and share a link
-
@Alex-Kushleyev [mavlink] Event dropped (78, 65529)
-
-
@rdjarvis said in Motor issues when running ESC calibration:
https://review.px4.io/plot_app?log=ae01b6f0-7910-43e4-a1c2-0d36ecc909d1
It seems you have something wrong with the thrust control (some filter?) the motors respond fine to roll / pitch but not thrust. see plots below showing RPMs. The ESC is tracking the desired RPMs well (actually a bit higher than desired at high rpm, but that is ok for now)
-
(look at how desired motor outputs and desired rpms rise very slowly when you increase the desired thrust, never reaching enough rpms to hover)
-
@Alex-Kushleyev Thank you. We understand that the desired inputs and actual input are not the same.
We have no filters. All ModalAI Hardware and Software are being used. ModalAI PX4 QGC Skin is used. Spektrum Rx/Tx DSMX as suggested by ModalAI is used.
We have purchased 2 ModalAI FPV 4n1 ESC and multiple VOXL and VOXL2 Dev kits to keep all hardware in the same ecosystem for easy integration and R&D for our product.
There is a disconnect between the FC/ESC comms on throttle Ch 3.
-
I do appreciate your willingness to help. I have selected ModalAI products for our organization based off of current and future capabilities. I have even selected a motor that I know you are using to ensure stable testing and flight characteristics.
If the ModalAI DEV team cannot troubleshoot issues on known UAV setups that you have at your shop, then I need to have a conversation with a different department.
All web advertising, Documentation, and Videos produced by ModalAI have shown these capabilities working flawlessly and it feels we have been oversold the true capabilities of the system today.
At this point these products cant even take flight.
-
I swapped the RC Channels for testing.
Throttle and yaw were swapped RC3 and RC4.
Same results with throttle not responding to inputs on RC4, instead of RC3.
-
-
I understand that getting a vehicle up in the air for the first time is a complicated process and it can be frustrating at times. At this point, it looks like all the hardware is working properly, so there must be some PX4 parameter that is causing this behavior. We have not seen such behavior before, where the thrust is increasing very slowly (ramp) when RC command is maxed. Can you please check SYS_VEHICLE_RESP parameter?
Motor Outputs plot shows a linear ramp (slew-rate limited) when you raised the throttle to the max. The PX4 software is doing that.
Also please consider the following points:
- PX4 is a 3rd party software with hundreds of parameters and it has its own support forum. You should ask PX4 specific questions there.
- you have built a completely custom vehicle and bringing it up from scratch, so it is very difficult for us to support. This is not a standard vehicle that use for testing.
- we have provided support to make sure your hardware is operating properly and it seems to me that it is. If you feel there is still a hardware issue (ESC, VOXL2 boards, etc) or ModalAI software (not 3rd party software), please let us know.
Finally, if the original FPV ESC is still not communicating and there is no physical damage to it, i recommend that you submit an RMA and get a replacement ESC https://www.modalai.com/pages/rma . If you are going to do that, please put a note "Attn Alex K" so that I get the ESC and investigate what happened.
Alex
-
Thanks Alex, SYS_VEHICLE_RESP parameter is -0.40. With small incremental adjustments there was no change in UAV behavior. Changed the value to 0.40 with no change in behavior.
RDJ
-
@Alex-Kushleyev Good morning,
Started trouble shooting this issue again with no change.
Under 4s battery power, all motors respond well to motor test, using slider in QGC, min to full throttle in Actuator tab.
Still no response other than "slow ramp up" when throttle is increased on RC Tx.
RDJ