Track 3 files into repository.

- modified apps/ios/cleverrc/telemetry.js
- modified clever/launch/clever.launch
- modified clever/src/rc.cpp

Auto commit by GitBook Editor
This commit is contained in:
Oleg Kalachev
2018-02-21 22:47:52 +03:00
parent 1ab251af6a
commit 7a95cbdf62
3 changed files with 12 additions and 5 deletions

View File

@@ -55,8 +55,6 @@ private:
{
ROS_INFO("State timeout");
mavros_msgs::State unknown_state;
unknown_state.connected = true;
unknown_state.mode = "UNKNOWN";
state_pub.publish(unknown_state);
state_msg = nullptr;
}
@@ -66,6 +64,10 @@ private:
state_sub = nh.subscribe("mavros/state", 1, &RC::handleState, this);
state_pub = nh.advertise<mavros_msgs::State>("state_latched", 1, true);
state_timeout_timer = nh.createTimer(ros::Duration(0), &RC::stateTimedOut, this, true, false);
// Publish initial state
mavros_msgs::State unknown_state;
state_pub.publish(unknown_state);
}
int createSocket(int port)