Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mavlink protocol in an independent module, solved macro bug
- Loading branch information
Showing
18 changed files
with
140 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
conf/autopilot/subsystems/fixedwing/telemetry_dummy.makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Hey Emacs, this is a -*- makefile -*- | ||
|
||
|
||
ap.CFLAGS += -DUSE_PPRZ_TRANSPORT=0 | ||
ap.CFLAGS += -DUSE_$(MODEM_PORT) | ||
ap.CFLAGS += -D$(MODEM_PORT)_BAUD=$(MODEM_BAUD) | ||
|
||
ap.CFLAGS += -DDOWNLINK -DDOWNLINK_DEVICE=$(MODEM_PORT) -DDOWNLINK_FBW_DEVICE=$(MODEM_PORT) -DDOWNLINK_AP_DEVICE=$(MODEM_PORT) -DPPRZ_UART=$(MODEM_PORT) | ||
ap.CFLAGS += -DDOWNLINK_TRANSPORT=PprzTransport | ||
ap.srcs += subsystems/datalink/downlink.c subsystems/datalink/pprz_transport.c | ||
ap.srcs += $(SRC_FIRMWARE)/datalink.c |
10 changes: 0 additions & 10 deletions
10
conf/autopilot/subsystems/fixedwing/telemetry_mavlink.makefile
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="mavlink"> | ||
<header> | ||
<file name="mavlink.h"/> | ||
</header> | ||
<periodic fun="PeriodicSendMavlink(MavlinkTransport, UART1)" freq="60"/> | ||
<event fun="MavlinkDatalinkEvent()"/> | ||
<makefile> | ||
<file name="mavlink.c"/> | ||
<file name="mavlink_transport.c"/> | ||
</makefile> | ||
</module> | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Paparazzi mcu0 $Id: pprz_transport.c 929 2006-06-02 12:11:37Z poine $ | ||
* | ||
* Copyright (C) 2006 Pascal Brisset, Antoine Drouin | ||
* Copyright (C) 2010 ENAC | ||
* | ||
* This file is part of paparazzi. | ||
* | ||
* paparazzi is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2, or (at your option) | ||
* any later version. | ||
* | ||
* paparazzi is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with paparazzi; see the file COPYING. If not, write to | ||
* the Free Software Foundation, 59 Temple Place - Suite 330, | ||
* Boston, MA 02111-1307, USA. | ||
* | ||
*/ | ||
|
||
#define PERIODIC_C_MAVLINK | ||
|
||
#include "generated/periodic_telemetry.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Paparazzi $Id: pprz_transport.h 4870 2010-04-24 03:02:39Z poine $ | ||
* | ||
* Copyright (C) 2010 ENAC | ||
* | ||
* This file is part of paparazzi. | ||
* | ||
* paparazzi is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2, or (at your option) | ||
* any later version. | ||
* | ||
* paparazzi is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with paparazzi; see the file COPYING. If not, write to | ||
* the Free Software Foundation, 59 Temple Place - Suite 330, | ||
* Boston, MA 02111-1307, USA. | ||
* | ||
*/ | ||
|
||
/** \file mavlink_transport.h | ||
* \Using MAVLINK protocol | ||
* | ||
*/ | ||
|
||
#ifndef MAVLINK_H | ||
#define MAVLINK_H | ||
|
||
#include "subsystems/datalink/datalink.h" | ||
#include "mavlink_transport.h" | ||
|
||
#include "mavlink_downlink.h" | ||
|
||
/* Datalink Event */ | ||
|
||
/* | ||
#define MavlinkDatalinkEvent() { \ | ||
MavlinkCheckAndParse(PPRZ_UART, mavlink_tp); \ | ||
DlCheckAndParse(); \ | ||
} | ||
*/ | ||
#define MavlinkDatalinkEvent() {} | ||
|
||
|
||
|
||
#endif /* MAVLINK_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters