File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ void DroneCAN::init(CanardOnTransferReception onTransferReceived,
13
13
14
14
strncpy (this ->node_name , name, sizeof (this ->node_name ));
15
15
16
+ IWatchdog.reload ();
17
+
16
18
canardInit (&canard,
17
19
memory_pool,
18
20
sizeof (memory_pool),
@@ -32,6 +34,8 @@ void DroneCAN::init(CanardOnTransferReception onTransferReceived,
32
34
// initialise the internal LED
33
35
pinMode (19 , OUTPUT);
34
36
37
+ IWatchdog.reload ();
38
+
35
39
// put our user params into memory
36
40
this ->set_parameters (param_list);
37
41
@@ -42,6 +46,9 @@ void DroneCAN::init(CanardOnTransferReception onTransferReceived,
42
46
{
43
47
this ->cycle ();
44
48
IWatchdog.reload ();
49
+ delay (20 );
50
+ digitalWrite (19 , this ->led_state );
51
+ this ->led_state = !this ->led_state ;
45
52
}
46
53
}
47
54
You can’t perform that action at this time.
0 commit comments