diff --git a/dji_sdk/include/dji_sdk/dji_drone.h b/dji_sdk/include/dji_sdk/dji_drone.h index 4572ceb..ae8078f 100644 --- a/dji_sdk/include/dji_sdk/dji_drone.h +++ b/dji_sdk/include/dji_sdk/dji_drone.h @@ -295,7 +295,7 @@ class DJIDrone odometry_subscriber = nh.subscribe("dji_sdk/odometry",10, &DJIDrone::odometry_subscriber_callback, this); sdk_permission_subscriber = nh.subscribe("dji_sdk/sdk_permission", 10, &DJIDrone::sdk_permission_subscriber_callback, this); time_stamp_subscriber = nh.subscribe("dji_sdk/time_stamp", 10, &DJIDrone::time_stamp_subscriber_callback,this); - mission_state_subscriber = nh.subscribe("dji_sdk/missino_state", 10, &DJIDrone::mission_state_push_info_callback, this); + mission_state_subscriber = nh.subscribe("dji_sdk/mission_state", 10, &DJIDrone::mission_state_push_info_callback, this); mission_event_subscriber = nh.subscribe("dji_sdk/mission_event", 10, &DJIDrone::mission_event_push_info_callback, this); } diff --git a/dji_sdk_demo/src/client.cpp b/dji_sdk_demo/src/client.cpp index 96091c8..770b235 100644 --- a/dji_sdk_demo/src/client.cpp +++ b/dji_sdk_demo/src/client.cpp @@ -66,6 +66,7 @@ int main(int argc, char **argv) Display_Main_Menu(); while(1) { + ros::spinOnce(); temp32 = getchar(); if(temp32 != 10) {