message: dronecore_server: ran fix-style
diff: @@ -45,9 +45,11 @@ enum class MissionState : unsigned {
  ERROR
  };
  -class DroneCoreRPCImpl final : public DroneCoreRPC::Service {
  +class DroneCoreRPCImpl final : public DroneCoreRPC::Service
  +{
  - Status Arm(ServerContext* context, const Empty* request, Bool* response) override {
  + Status Arm(ServerContext *context, const Empty *request, Bool *response) override
  + {
  Device &device = dc.device();
  const Action::Result arm_result = device.action().arm();
  if (arm_result != Action::Result::SUCCESS) {
  @@ -58,7 +60,8 @@ class DroneCoreRPCImpl final : public DroneCoreRPC::Service {
  return Status::OK;
  }
  - Status TakeOff(ServerContext* context, const Empty* request, Bool* response)override {
  + Status TakeOff(ServerContext *context, const Empty *request, Bool *response)override
  + {
  Device &device = dc.device();
  const Action::Result takeoff_result = device.action().takeoff();
  if (takeoff_result != Action::Result::SUCCESS) {
  @@ -69,7 +72,8 @@ class DroneCoreRPCImpl final : public DroneCoreRPC::Service {
  return Status::OK;
  }
  - Status Land(ServerContext* context, const Empty* request, Bool* response)override {
  + Status Land(ServerContext *context, const Empty *request, Bool *response)override
  + {
  Device &device = dc.device();
  const Action::Result land_result = device.action().land();
  if (land_result != Action::Result::SUCCESS) {
  @@ -80,20 +84,23 @@ class DroneCoreRPCImpl final : public DroneCoreRPC::Service {
  return Status::OK;
  }
  - Status AddWaypoint(ServerContext* context, const Waypoint* waypoint, Bool* response)override {
  + Status AddWaypoint(ServerContext *context, const Waypoint *waypoint, Bool *response)override
  + {
  std::shared_ptr<MissionItem> new_item(new MissionItem());
  new_item->set_position(waypoint->latitude(), waypoint->longitude());
  new_item->set_relative_altitude(waypoint->altitude());
  new_item->set_speed(waypoint->speed());
  new_item->set_fly_through(waypoint->is_fly_through());
  new_item->set_gimbal_pitch_and_yaw(waypoint->pitch(), waypoint->yaw());
  - new_item->set_camera_action(static_cast<dronecore::MissionItem::CameraAction>(waypoint->camera_action()));
  + new_item->set_camera_action(static_cast<dronecore::MissionItem::CameraAction>
  + (waypoint->camera_action()));
  mission_items.push_back(new_item);
  response->set_ret(true);
  return Status::OK;
  }
  - Status FlyMission(ServerContext* context, const Empty* request, Bool* response) override {
  + Status FlyMission(ServerContext *context, const Empty *request, Bool *response) override
  + {
  Device &device = dc.device();
  finished = false;
  _mission_state = MissionState::INIT;
  @@ -154,10 +161,11 @@ class DroneCoreRPCImpl final : public DroneCoreRPC::Service {
  }
  }
  - if(_mission_state == MissionState::DONE)
  + if (_mission_state == MissionState::DONE) {
  response->set_ret(true);
  - else
  + } else {
  response->set_ret(false);
  + }
  return Status::OK;
  }
  @@ -234,7 +242,8 @@ static void receive_disarm_result(Action::Result result)
  MissionState DroneCoreRPCImpl::_mission_state;
  -void RunServer() {
  +void RunServer()
  +{
  std::string server_address("0.0.0.0:50051");
  DroneCoreRPCImpl service;
  @@ -265,7 +274,8 @@ void RunServer() {
  server->Wait();
  }
  -int main(int argc, char** argv) {
  +int main(int argc, char **argv)
  +{
  RunServer();
  return 0;
  }
  