Skip to content

Commit

Permalink
example of wrapper for ubx gps (not tested !)
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Apr 29, 2011
1 parent fa3bef8 commit 554a0cc
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
22 changes: 22 additions & 0 deletions conf/modules/gps_ubx_uart.xml
@@ -0,0 +1,22 @@
<!DOCTYPE module SYSTEM "module.dtd">

<module name="gps_ubx" dir="gps">
<header>
<file name="gps_ubx_uart.h"/>
</header>
<init fun="gps_init()"/>
<event fun="GpsEvent(on_gps_solution)"/>
<makefile>
<file name="gps.c" dir="subsystems"/>
</makefile>
<makefile target="ap">
<file name="gps_ubx.c" dir="subsystems/gps"/>
<define name="GPS_TYPE_H" value="\"subsystems/gps/gps_ubx.h\""/>
</makefile>
<makefile target="sim|jsbsim">
<file name="gps_sim.c" dir="subsystems/gps"/>
<define name="GPS_TYPE_H" value="\"subsystems/gps/gps_sim.h\""/>
</makefile>
</module>


34 changes: 34 additions & 0 deletions sw/airborne/modules/gps/gps_ubx_uart.h
@@ -0,0 +1,34 @@
/*
* Copyright (C) 2011 Gautier Hattenberger
*
* 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.
*
*/

/*
* Wrapper for UBX gps on uart
*/

#ifndef MODULE_GPS_UBX_UART_H
#define MODULE_GPS_UBX_UART_H

#include "subsystems/gps.h"
#include "subsystems/gps/gps_ubx.h"

#endif // MODULE_GPS_UBX_UART_H

0 comments on commit 554a0cc

Please sign in to comment.