forked from paparazzi/paparazzi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes paparazzi#515
- Loading branch information
Showing
30 changed files
with
1,736 additions
and
1,204 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
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,25 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="baro_ms5611_spi" dir="sensors"> | ||
<doc> | ||
<description> | ||
Baro MS5611 (SPI) | ||
Measurement Specialties MS5611-01BA pressure sensor (SPI) | ||
</description> | ||
<define name="MS5611_SPI_DEV" value="spiX" description="select spi peripheral to use (default spi1)"/> | ||
<define name="MS5611_SLAVE_DEV" value="SPI_SLAVE0" description="SPI slave select index"/> | ||
<define name="SENSOR_SYNC_SEND" description="flag to enable sending BARO_MS5611 message on every new measurement"/> | ||
</doc> | ||
<header> | ||
<file name="baro_ms5611_spi.h"/> | ||
</header> | ||
<init fun="baro_ms5611_init()"/> | ||
<periodic fun="baro_ms5611_read()" freq="4"/> | ||
<periodic fun="baro_ms5611_periodic_check()" freq="40"/> | ||
<event fun="baro_ms5611_event()"/> | ||
<makefile target="ap"> | ||
<file name="baro_ms5611_spi.c"/> | ||
<file name="ms5611.c" dir="peripherals"/> | ||
<file name="ms5611_spi.c" dir="peripherals"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,14 @@ | ||
|
||
/* | ||
* board specific fonctions for the KroozSD board | ||
* board specific interface for the KroozSD board | ||
* | ||
* It uses the subsystems/sensors/baro_ms5611_i2c.c driver | ||
*/ | ||
|
||
#ifndef BOARDS_KROOZ_BARO_H | ||
#define BOARDS_KROOZ_BARO_H | ||
|
||
#include "std.h" | ||
#include "mcu_periph/i2c.h" | ||
#include "modules/sensors/baro_ms5611_i2c.h" | ||
#include "math/pprz_algebra_int.h" | ||
|
||
//#include "led.h" | ||
|
||
static inline void baro_event(void (*b_abs_handler)(void), void (*b_diff_handler)(void)) | ||
{ | ||
baro_ms5611_event(); | ||
if(baro_ms5611_valid) { | ||
baro.status = BS_RUNNING; | ||
baro.absolute = (int32_t)baroms; | ||
b_abs_handler(); | ||
baro_ms5611_valid = FALSE; | ||
} | ||
} | ||
|
||
#define BaroEvent(_b_abs_handler, _b_diff_handler) baro_event(_b_abs_handler,_b_diff_handler) | ||
extern void baro_event(void (*b_abs_handler)(void)); | ||
#define BaroEvent(_b_abs_handler, _b_diff_handler) baro_event(_b_abs_handler) | ||
|
||
#endif /* BOARDS_KROOZ_SD_BARO_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
Oops, something went wrong.