Owne / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Problem with rc channel values #279

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Run the CLI radio test on trunk
2.
3.

What is the expected output? What do you see instead?
Output values for ch1, ch2 should range from -45 to 45 (4500 / 100).  Instead 
you can see that the value of control_out is overflowing when a pwm change of 
approx 100 microseconds occurs.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dewei...@gmail.com on 15 Feb 2011 at 12:19

GoogleCodeExporter commented 8 years ago
I have noticed this is due to the fact that while the trim value is getting set 
the min and max values are not.

Original comment by dewei...@gmail.com on 15 Feb 2011 at 12:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Mike - on the second issue (Prob w rc channel val's) - I have found the bug, 
but am not yet familiar enough with AP_Var to know the best way to fix it.

The problem is basically that in the rc channel object radio_min, ratio_trim, 
and radio_max are not included in the AP_Var group _group.  Consequentially 
they are not saved to or loaded from eeprom with the save and load methods.

I would think that either they should be included in the group (but would this 
be problematic because they are public) or saves and loads for them should be 
explicitly added to the save and load methods.

Original comment by dewei...@gmail.com on 15 Feb 2011 at 12:47

GoogleCodeExporter commented 8 years ago
This should have been fixed with #278, please verify.

Original comment by DrZip...@gmail.com on 16 Feb 2011 at 12:38

GoogleCodeExporter commented 8 years ago
Fix verified, thanks.

Original comment by dewei...@gmail.com on 16 Feb 2011 at 12:46