mirror of https://github.com/ArduPilot/ardupilot
Fixed rc channel.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1850 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
81c5770b77
commit
5e726335fa
|
@ -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
|
||||||
|
|
|
@ -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…
Reference in New Issue