mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 03:23:33 +08:00
examples fix code style
This commit is contained in:
committed by
Lorenz Meier
parent
0eaf41a048
commit
662ec3f62f
@@ -40,7 +40,8 @@
|
||||
#pragma once
|
||||
#include <px4.h>
|
||||
|
||||
class PublisherExample {
|
||||
class PublisherExample
|
||||
{
|
||||
public:
|
||||
PublisherExample();
|
||||
|
||||
@@ -49,7 +50,7 @@ public:
|
||||
int main();
|
||||
protected:
|
||||
px4::NodeHandle _n;
|
||||
px4::Publisher<px4::px4_rc_channels> * _rc_channels_pub;
|
||||
px4::Publisher<px4::px4_vehicle_attitude> * _v_att_pub;
|
||||
px4::Publisher<px4::px4_parameter_update> * _parameter_update_pub;
|
||||
px4::Publisher<px4::px4_rc_channels> *_rc_channels_pub;
|
||||
px4::Publisher<px4::px4_vehicle_attitude> *_v_att_pub;
|
||||
px4::Publisher<px4::px4_parameter_update> *_parameter_update_pub;
|
||||
};
|
||||
|
||||
@@ -69,11 +69,11 @@ int publisher_main(int argc, char *argv[])
|
||||
task_should_exit = false;
|
||||
|
||||
daemon_task = task_spawn_cmd("publisher",
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_MAX - 5,
|
||||
2000,
|
||||
main,
|
||||
(argv) ? (char* const*)&argv[2] : (char* const*)NULL);
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_MAX - 5,
|
||||
2000,
|
||||
main,
|
||||
(argv) ? (char * const *)&argv[2] : (char * const *)NULL);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user