-
Notifications
You must be signed in to change notification settings - Fork 16.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copter-3.4: motor twitch when disarmed when using OneShot #4789
Comments
Further tests As suggested on ardupilot.org forum, did try with safety switch disabled, and redid the ESC cal with MOT_PWM_TYPE 0, 1 and 2, and results are the same. OK with 0,1 twitching with 2. Did try redoing ESC cal with MOT_PWM_MAX and MIN to the BLHeli suite suggested default values 1148 and 1832. And another one. ESC cal with MOT_PWM_MAX and MIN to 0 to go back to sending the Throttle PWM values (my radio - Taranis 982/2002) Curious that not all the ESC's took the same time to be initialized, and it was a random pattern, sometimes ESC1 was the first others ESC 4 was the first, etc, etc... So redid the initial config MOT_PWM_MIN/MAX 1000/2000 MOT_PWM_TYPE to regular Oneshot (1) redid the ESC calibration and getting everything ready to fly tomorrow with RC4... (I hope). I'm going to ask the BLHeli people if this is expected behaviour... we'll see.... |
With all this testing I also made a sugestion for Tower :) DroidPlanner/Tower#1802 |
Great, thanks very much for testing this. So I think because the twitching is also found when using the CC3D Betaflight software, we can conclude that it's very likely to be either the hardware or the BLHeli software. |
Not only on Betaflight, but also using the BLHeli native tool to calibrate ESC's, but yes your assumption is correct. |
Question raised on BLHeli thread at RCG http://www.rcgroups.com/forums/showpost.php?p=35663199&postcount=9846 |
As suggested on blheli rcgroups thread, I tried to lower down the min pwm output to the motors. My rc3 min is 1080, so I've tried to set mot_pwm_min to 1050 and even 1000 however the twitching was still there. By looking to missionplanner status tab I could see that it wasn't affecting the chXout value ( which was 135 ). So I've just decreased the rc3_min from 1085 to 1055 which in turn has lowered rcout from 135 to 131. Anything above 131 in rcout that causes twitch. |
I'll try with those values via MP, but I've used the BLHeli suite app and with the suggested values (1148/1832) it was twitching... be back in a bit :) |
ok, Yes it works like @tabascoz said. The problem is that the ESC's only change to OneShot125 mode when they boot and get initialized to the signaling they receive at boot time. So although we can change freely the PWM_OUT mode between 1,2,3 without rebooting the PixHawk, the ESC's were initialized at Normal mode. So better testing must be: change settings to OneShot125 on ArduPilot and adjust the PWM_MIN to whatever value you need. then power off everything and power on. As we are sending OneShot 125 signal then the ESC's get initialized to that, and the twitching occurs no matter the PWM_MIN value we send. If we set the value too high the motors do even spin without the copter being armed.... I've tested RC_OUT from 125 to 135. @rmackay9 I remember you saying that we never send below (1000/125) I'm wondering if we should send below 1000(125)...on Oneshot 125 |
Following on this theme... So I think I found a workaround for this issue. Set your MOT_PWM_TYPE to 2 (OneShot125)
Set the MOT_PWM_MIN to 1100 Calibrate the ESC's Don't worry motors still twitching.. Power down, and power up Now go to MOT_PWM_MIN and set it to a value below what was used for calibration, say 1000 Motors stop twitching because they are receiving a signal below their calibrated minimum. Now arm, and check if the motors spin normally. In my case with the values above they were twitching, because the value they were receiving was very close to the minimum they were calibrated, so I played around with the MOT_PWM_MIN value used to calibrate the ESC until I was satisfied... ok, It's a bit twisted process, and I'm not sure I made myself clear. Now, up to test other ESC's and try to see if there's a minimum value between calibrated minimum and motor stopped... |
It's not a oneshot problem. |
Please tell us on which values the PWM_MIN was calibrated on the ESC (assuming the calibration was performed also using OneShot125, and which values are on the output of the Flight controller with either PX4 and ArduPilot before and after the safety switch is pressed, and also when the safety switch is disabled My testing without any flight controller plugged in to the ESC, so no influence of either PX4/ArduPilot and safety switch - direct from a USB/Com interface and only using the BLHeli config tool the twitching was repeatable every time. https://www.youtube.com/watch?v=wYAiCVsDLfI There's always a chance that from the 3 types of ESC's (20 ESC's) I've tested (both Silabs and Atmel) they are all sub-standard. |
@lokanaft Except for the version of BLHeli, I'll test the other differences and report back |
@lvale, it's ok to close this right? Because I think we've determined that it's not an issue with ardupilot. |
reported by Luis including this video: https://www.youtube.com/watch?v=w5QLcQU7Xro
The text was updated successfully, but these errors were encountered: