mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 01:13:35 +08:00
LPC11C24: Added node status init
This commit is contained in:
@@ -7,11 +7,6 @@
|
|||||||
#include <chip.h>
|
#include <chip.h>
|
||||||
#include <uavcan_lpc11c24/uavcan_lpc11c24.hpp>
|
#include <uavcan_lpc11c24/uavcan_lpc11c24.hpp>
|
||||||
|
|
||||||
#define ENFORCE(x) \
|
|
||||||
if ((x) == 0) { \
|
|
||||||
while (true) { board::setErrorLed(true); } \
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -50,6 +45,8 @@ int main()
|
|||||||
{
|
{
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
getNode().setStatusOk();
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
const int res = getNode().spin(uavcan::MonotonicDuration::fromMSec(25));
|
const int res = getNode().spin(uavcan::MonotonicDuration::fromMSec(25));
|
||||||
|
|||||||
Reference in New Issue
Block a user