Browse Source

Fixed rc channel.

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1850 f9c3cf11-9bcb-44bc-f272-b75c42450872
master
james.goppert 14 years ago
parent
commit
0f253bd5b8
  1. 6
      libraries/AP_RcChannel/AP_RcChannel.cpp
  2. 2
      libraries/AP_RcChannel/AP_RcChannel.h

6
libraries/AP_RcChannel/AP_RcChannel.cpp

@ -37,10 +37,8 @@ AP_RcChannel::AP_RcChannel(AP_Var::Key key, const prog_char_t * name, APM_RC_Cla
} }
void AP_RcChannel::readRadio() { uint16_t AP_RcChannel::readRadio() {
// apply reverse return _rc.InputCh(ch);
uint16_t pwmRadio = _rc.InputCh(ch);
setPwm(pwmRadio);
} }
void void

2
libraries/AP_RcChannel/AP_RcChannel.h

@ -37,7 +37,7 @@ public:
AP_Bool reverse; AP_Bool reverse;
// set // set
void readRadio(); uint16_t readRadio();
void setPwm(uint16_t pwm); void setPwm(uint16_t pwm);
void setPosition(float position); void setPosition(float position);
void setNormalized(float normPosition); void setNormalized(float normPosition);

Loading…
Cancel
Save