mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
vtol_type: use correct pwm device path in init function
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
committed by
Silvan Fuhrer
parent
01535a726a
commit
355e3ea986
@@ -81,7 +81,8 @@ VtolType::VtolType(VtolAttitudeControl *att_controller) :
|
|||||||
|
|
||||||
bool VtolType::init()
|
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);
|
int fd = px4_open(dev, 0);
|
||||||
|
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user