mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 03:23:34 +08:00
IOCTL for Hardpoint controller and instantiation for UavcanHardpointController as a field of UavcanNode
This commit is contained in:
@@ -1107,6 +1107,12 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
|
||||
break;
|
||||
}
|
||||
|
||||
case UAVCANIOC_HARDPOINT_SET:
|
||||
const auto& cmd = *reinterpret_cast<uavcan::equipment::hardpoint::Command*>(arg);
|
||||
_hardpoint_controller.set_command(cmd.hardpoint_id, cmd.command);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user