mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 02:21:39 +08:00
uorb autogeneration
This commit is contained in:
committed by
Lorenz Meier
parent
3aa2297497
commit
76387b1693
@@ -206,7 +206,7 @@ namespace uORB_test
|
||||
ASSERT_EQ( c._send_messageCount, 0 );
|
||||
|
||||
//step 1.
|
||||
ORB_DEFINE( topicA_sndmsg, struct orb_topic_A );
|
||||
ORB_DEFINE( topicA_sndmsg, struct orb_topic_A, "TOPICA_SNDMSG:int16_t val;" );
|
||||
_topicA.val = 1;
|
||||
_pub_ptr = orb_advertise(ORB_ID(topicA_sndmsg ), &_topicA );
|
||||
ASSERT_TRUE( ( _pub_ptr != nullptr ) ) << "Failed to advertize uORB Topic topicA_sndmsg: errno: " << errno;
|
||||
|
||||
Reference in New Issue
Block a user