mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -04:00
863656b037
* Implement NavSatFix message * Support covariance * Set frame ID to WGS-84 * Closes #23284 Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
#include "generated/Time.h"
|
|
#include "generated/NavSatFix.h"
|
|
|
|
|
|
#include "AP_DDS_Generic_Fn_T.h"
|
|
#include "uxr/client/client.h"
|
|
|
|
// Code generated table based on the enabled topics.
|
|
// Mavgen is using python, loops are not readable.
|
|
// Can use jinja to template (like Flask)
|
|
|
|
|
|
const struct AP_DDS_Client::Topic_table AP_DDS_Client::topics[] = {
|
|
{
|
|
.topic_id = 0x01,
|
|
.pub_id = 0x01,
|
|
.dw_id = uxrObjectId{.id=0x01, .type=UXR_DATAWRITER_ID},
|
|
.topic_profile_label = "time__t",
|
|
.dw_profile_label = "time__dw",
|
|
.serialize = Generic_serialize_topic_fn_t(&builtin_interfaces_msg_Time_serialize_topic),
|
|
.deserialize = Generic_deserialize_topic_fn_t(&builtin_interfaces_msg_Time_deserialize_topic),
|
|
.size_of = Generic_size_of_topic_fn_t(&builtin_interfaces_msg_Time_size_of_topic),
|
|
},
|
|
{
|
|
.topic_id = 0x02,
|
|
.pub_id = 0x02,
|
|
.dw_id = uxrObjectId{.id=0x02, .type=UXR_DATAWRITER_ID},
|
|
.topic_profile_label = "navsatfix0__t",
|
|
.dw_profile_label = "navsatfix0__dw",
|
|
.serialize = Generic_serialize_topic_fn_t(&sensor_msgs_msg_NavSatFix_serialize_topic),
|
|
.deserialize = Generic_deserialize_topic_fn_t(&sensor_msgs_msg_NavSatFix_deserialize_topic),
|
|
.size_of = Generic_size_of_topic_fn_t(&sensor_msgs_msg_NavSatFix_size_of_topic),
|
|
},
|
|
};
|