move spin functions to nodehandle

This commit is contained in:
Thomas Gubler
2014-11-26 13:18:28 +01:00
parent 818a49b5a8
commit ee534b827a
5 changed files with 7 additions and 16 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ PX4_MAIN_FUNCTION(publisher)
*/
rc_channels_pub->publish(msg);
px4::spin_once();
n.spinOnce();
loop_rate.sleep();
++count;
+1 -1
View File
@@ -85,7 +85,7 @@ PX4_MAIN_FUNCTION(subscriber)
* callbacks will be called from within this thread (the main one). px4::spin()
* will exit when Ctrl-C is pressed, or the node is shutdown by the master.
*/
px4::spin();
n.spin();
return 0;
}