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: RCMAP doesn't use correct RCn_MIN and RCn_MAX #1661
Comments
Hi Guys, wass talking to Tridge last night, and this sounds like what killed a large octo of mine a few months back, was demonstrating RTL to a customer and it climbed a little, yawed at full rate then turned over on its back and plummeted around 300 feet, fortunately no gimbal on board and soft ground. Damage was very minor considering! I did analyse the logs at the time and came to the conclusion that the falisafe was incorectly set, (Spektrum radio on pixhawk) I was under the illusion that RCMap was fully functional. I had been using this copter on a Jeti radio and needed to swap to a spektrum system (had spektrum mode 1 and 2 available,... only had 1 Jeti radio available..) which required using RCMap. |
Me again,.. It should also be noted that the work around requires you to centre ALL sticks, ie leave throttle in the centre otherwise the centre position gets all screwy for the other channel... not sure of the implications of the throttle centre position actually being in the centre on other functions? |
Hello, |
If I understand correctly there are some throttle control parameters automatically set while in flight? Something like throttle mid based on hover while in stabilize mode? Are these parameters considered by the RCMap settings? |
Manually entering Min, Max, and Trim values worked for me. Essentially I swapped these values one to the other within the full parameter list. RC1 values on RC3. RC2 to RC1. RC3 to RC2. RC4 remains un touched. Performing radio calibration again resets these edits obviously! Radio Calibration does not honor my RCMap values. Calibration leaves the trim value of RC3 set very low as it assumes this the throttle channel. My RCMap values have elevator on CH3 so the trim value set via radio calibration would give full pitch forward all the time. FLIP! A low trim value on any other than the actual throttle channel is scary stuff! A lot of band wagoneers getting involved for this kind of bug!!! Failsafe does appear to respect my RCMap values. I attempted to invoke radio fs with low pwm inputs on CH3 without success... Thank Goodness! However when applying low pwm input to CH1 I can invoke failsafe. Perfect! Dean |
Has this been addressed in 3.3 yet? |
The big problem here is actually the trim values recorded by mission planner. If I do a standard spektrum remapping of all the channels then it will read throttle trim as pitch trim etc. This would not matter if all the trim values were centred but of course the throttle trim is basically the same as throttle min. On ArduCopter 3.2.1 this causes a hard right roll as soon as you raise the throttle. |
My fix works in the simulator. Was able to fly the copter mission. You have to be careful to set inital RC values appropriately before doing anything as they are hardcoded to defaults (e.g. RC3 to 1000, RC1 1500). Will now try on a real vehicle (gulp). I'm guessing this is all unnecessary as Rob has a fix in hand (?), but I had fun getting to grips with the ins and outs of firmware debugging and I understand the code a bit better now. |
I don't know if I have the fix for this yet. Part of the problem is my fix Do you have yours in a branch somewhere, I could see what you did? On 30 March 2015 at 14:42, Andy Piper notifications@github.com wrote:
|
Here you go: |
Any good? I will try the patch on my Quad at the weekend if it will help (assuming these 100mph winds die down), but will probably skip it if you are going a different direction. |
I am running 3.2.1 on my quad, and was having an issue where the copter was rolling hard on takeoff. I eventually discovered that the issue was due to RC1_TRIM being applied to the roll channel despite having a RCMAP_ROLL = 3 and RCMAP_THROTTLE = 1 Would this be considered the same issue? |
Yes, exactly the same issue. |
What's the status on this? Do you need any help? I've laid off my fix because I thought this was in hand, but Randy seemed to indicated 3.3 was cooked now without RCMAP being fixed :( |
It would be awesome if 3.2.1 could also be fixed and not only new versions. As I understood what I read 3.2.1 is the last firmware that will fit onto my APM2. |
It'll make it into AC3.3 for sure. There aren't many more changes going into AC3.3 but I guarantee this one will be in it. Rob Lefebvre's going to add it. |
Super! |
This is fixed in master and will go out wit AC3.3-rc6. |
Any chance of getting this fixed in a 3.2.x release so we can use PPM + RCMAP in an APM without the workaround? |
It's a huge change - no chance of it going in 3.2.x |
If users use RCMAP to remap the roll, pitch, yaw, throttle, the RCn_MIN and RCn_MAX values do not come from the correct channels.
The work-around is for users to set the RC range for all four to be the same but really we should take the min and max from the correct place.
The text was updated successfully, but these errors were encountered: