mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 15:53:34 +08:00
Cleaned up UAVCAN ioctl codes
This commit is contained in:
committed by
Lorenz Meier
parent
bf6dff3e99
commit
a268845f1d
@@ -1115,7 +1115,7 @@ UavcanNode::ioctl(file *filp, int cmd, unsigned long arg)
|
||||
break;
|
||||
|
||||
|
||||
case UAVCANIOC_HARDPOINT_SET: {
|
||||
case UAVCAN_IOCS_HARDPOINT_SET: {
|
||||
const auto &hp_cmd = *reinterpret_cast<uavcan::equipment::hardpoint::Command *>(arg);
|
||||
_hardpoint_controller.set_command(hp_cmd.hardpoint_id, hp_cmd.command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user