Skip to content

Commit 23c5e57

Browse files
committed
Comms code goes here
1 parent 94c51ca commit 23c5e57

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ CSRC = $(PORTSRC) \
7979
$(BOARDSRC) \
8080
$(CHIBIOS)/os/various/lis302dl.c \
8181
$(CHIBIOS)/os/various/chprintf.c \
82-
$(CHIBIOS)/os/various/shell.c \
82+
comms.c \
8383
TinyGPS.c \
8484
Motors.c \
8585
Spektrum.c \

comms.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
ChibiCopter - https://github.com/grantmd/ChibiCopter
3+
A quadcopter platform running under ChibiOS/RT.
4+
5+
Handles communication with the ground/other UAVs and robots using mavlink
6+
*/
7+
8+
#include "ch.h"
9+
#include "hal.h"
10+
11+
#include "comms.h"
12+
13+
#include <mavlink.h>

comms.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
ChibiCopter - https://github.com/grantmd/ChibiCopter
3+
A quadcopter platform running under ChibiOS/RT.
4+
5+
Handles communication with the ground/other UAVs and robots using mavlink
6+
*/
7+
8+
#ifndef _COMMS_H_
9+
#define _COMMS_H_
10+
11+
#endif /* _COMMS_H_ */

main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#include "lis302dl.h"
1414
#include "chprintf.h"
1515

16-
#include <mavlink.h>
17-
16+
#include "comms.h"
1817
#include "TinyGPS.h"
1918
#include "Motors.h"
2019
#include "Spektrum.h"

0 commit comments

Comments
 (0)