Owne / ardupilot-mega

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

Input and output commands #327

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Connect receiver to In5
Connect servo to Out5

Both channels are 5.

You can read this receiver with command: value=g.rc_6.radio_in. So the channel 
number is 6
You can set servo with command: APM_RC.OutputCh(5,1600). Now the channel number 
is 5.

What version of the product are you using? On what operating system?
I have original APM board, where channels starts from 0. In new version 
channels starts from 1. APM 2.012

Anyway, channel numbers should be same in both commands.

Original issue reported on code.google.com by alpo.has...@gmail.com on 26 Apr 2011 at 5:17

GoogleCodeExporter commented 8 years ago
This is not a defect, it is a property of the library.  Use the enumerated 
values CH_1, etc. - do not use numerical values.

Original comment by dewei...@gmail.com on 26 Apr 2011 at 6:20