From e6bef2526c9b6cd68770fdcf17410a150d8cef90 Mon Sep 17 00:00:00 2001 From: murata Date: Mon, 22 Aug 2016 09:03:45 +0900 Subject: [PATCH] Plane: By multiple bit synthetic, can this method once access. --- ArduPlane/capabilities.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ArduPlane/capabilities.cpp b/ArduPlane/capabilities.cpp index c389a45d9a..68da406fb0 100644 --- a/ArduPlane/capabilities.cpp +++ b/ArduPlane/capabilities.cpp @@ -4,11 +4,11 @@ void Plane::init_capabilities(void) { - hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT); - hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT); - hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_COMMAND_INT); - hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_INT); - hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT); - hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET); + hal.util->set_capabilities(MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT | + MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT | + MAV_PROTOCOL_CAPABILITY_COMMAND_INT | + MAV_PROTOCOL_CAPABILITY_MISSION_INT | + MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT | + MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET); }