Skip to content

Commit

Permalink
spinOnce()
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyusea committed Dec 9, 2015
1 parent 67eb516 commit a6fa813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dji_sdk/include/dji_sdk/dji_drone.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class DJIDrone
odometry_subscriber = nh.subscribe<nav_msgs::Odometry>("dji_sdk/odometry",10, &DJIDrone::odometry_subscriber_callback, this);
sdk_permission_subscriber = nh.subscribe<std_msgs::UInt8>("dji_sdk/sdk_permission", 10, &DJIDrone::sdk_permission_subscriber_callback, this);
time_stamp_subscriber = nh.subscribe<dji_sdk::TimeStamp>("dji_sdk/time_stamp", 10, &DJIDrone::time_stamp_subscriber_callback,this);
mission_state_subscriber = nh.subscribe<dji_sdk::MissionPushInfo>("dji_sdk/missino_state", 10, &DJIDrone::mission_state_push_info_callback, this);
mission_state_subscriber = nh.subscribe<dji_sdk::MissionPushInfo>("dji_sdk/mission_state", 10, &DJIDrone::mission_state_push_info_callback, this);
mission_event_subscriber = nh.subscribe<dji_sdk::MissionPushInfo>("dji_sdk/mission_event", 10, &DJIDrone::mission_event_push_info_callback, this);
}

Expand Down
1 change: 1 addition & 0 deletions dji_sdk_demo/src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ int main(int argc, char **argv)
Display_Main_Menu();
while(1)
{
ros::spinOnce();
temp32 = getchar();
if(temp32 != 10)
{
Expand Down

0 comments on commit a6fa813

Please sign in to comment.