mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:03:34 +08:00
FMU: Power on radio if prsent
This commit is contained in:
committed by
Lorenz Meier
parent
2fad39aaae
commit
d21023c966
@@ -907,6 +907,12 @@ PX4FMU::cycle()
|
|||||||
update_pwm_rev_mask();
|
update_pwm_rev_mask();
|
||||||
|
|
||||||
#ifdef RC_SERIAL_PORT
|
#ifdef RC_SERIAL_PORT
|
||||||
|
|
||||||
|
#ifdef GPIO_PCON_RADIO
|
||||||
|
// power radio on
|
||||||
|
RF_RADIO_CONTOL(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
// dsm_init sets some file static variables and returns a file descriptor
|
// dsm_init sets some file static variables and returns a file descriptor
|
||||||
_rcs_fd = dsm_init(RC_SERIAL_PORT);
|
_rcs_fd = dsm_init(RC_SERIAL_PORT);
|
||||||
// assume SBUS input
|
// assume SBUS input
|
||||||
|
|||||||
Reference in New Issue
Block a user