mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 08:50:35 +08:00
Code cleanup - Whitespace changes
These are only whitespace changes Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -51,31 +51,35 @@
|
||||
#include "topics/tecs_status.h"
|
||||
#include "topics/rc_channels.h"
|
||||
|
||||
namespace uORB {
|
||||
namespace uORB
|
||||
{
|
||||
|
||||
template<class T>
|
||||
Publication<T>::Publication(
|
||||
const struct orb_metadata *meta,
|
||||
List<PublicationNode *> * list) :
|
||||
List<PublicationNode *> *list) :
|
||||
T(), // initialize data structure to zero
|
||||
PublicationNode(meta, list) {
|
||||
PublicationNode(meta, list)
|
||||
{
|
||||
}
|
||||
|
||||
template<class T>
|
||||
Publication<T>::~Publication() {}
|
||||
|
||||
template<class T>
|
||||
void * Publication<T>::getDataVoidPtr() {
|
||||
void *Publication<T>::getDataVoidPtr()
|
||||
{
|
||||
return (void *)(T *)(this);
|
||||
}
|
||||
|
||||
|
||||
PublicationNode::PublicationNode(const struct orb_metadata *meta,
|
||||
List<PublicationNode *> * list) :
|
||||
PublicationBase(meta) {
|
||||
if (list != nullptr) list->add(this);
|
||||
List<PublicationNode *> *list) :
|
||||
PublicationBase(meta)
|
||||
{
|
||||
if (list != nullptr) { list->add(this); }
|
||||
}
|
||||
|
||||
|
||||
|
||||
template class __EXPORT Publication<vehicle_attitude_s>;
|
||||
template class __EXPORT Publication<vehicle_local_position_s>;
|
||||
|
||||
Reference in New Issue
Block a user