mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
vtol_type: use correct pwm device path in init function
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
parent
01535a726a
commit
355e3ea986
@ -81,7 +81,8 @@ VtolType::VtolType(VtolAttitudeControl *att_controller) :
|
||||
|
||||
bool VtolType::init()
|
||||
{
|
||||
const char *dev = PWM_OUTPUT0_DEVICE_PATH;
|
||||
const char *dev = _params->vt_mc_on_fmu ? PWM_OUTPUT1_DEVICE_PATH : PWM_OUTPUT0_DEVICE_PATH;
|
||||
|
||||
int fd = px4_open(dev, 0);
|
||||
|
||||
if (fd < 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user