diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-10 07:31:55 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-10 07:31:55 +0100 |
commit | 2bbc98067a16621b49f103fc3e1ae099ab957aa8 (patch) | |
tree | af4b6171e2fea35e736b04b56bea25429f835fb5 /src/examples/publisher/publisher.cpp | |
parent | f36f54c621cb5b36d345c5a26f72e89fc948fa65 (diff) | |
download | px4-firmware-2bbc98067a16621b49f103fc3e1ae099ab957aa8.tar.gz px4-firmware-2bbc98067a16621b49f103fc3e1ae099ab957aa8.tar.bz2 px4-firmware-2bbc98067a16621b49f103fc3e1ae099ab957aa8.zip |
Complementing ROS wrapper, not compiling yetros_wrapper
Diffstat (limited to 'src/examples/publisher/publisher.cpp')
-rw-r--r-- | src/examples/publisher/publisher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/publisher/publisher.cpp b/src/examples/publisher/publisher.cpp index 91e063162..7e2b2f0d4 100644 --- a/src/examples/publisher/publisher.cpp +++ b/src/examples/publisher/publisher.cpp @@ -67,7 +67,7 @@ int main(int argc, char **argv) */ int count = 0; - while (px4::ok()) { + while (n.ok()) { /** * This is a message object. You stuff it with data, and then publish it. */ @@ -84,7 +84,7 @@ int main(int argc, char **argv) */ rc_channels_pub.publish(msg); - px4::spin_once(); + n.spinOnce(); loop_rate.sleep(); ++count; |