Commit Graph

21 Commits

Author SHA1 Message Date
Gautier Hattenberger 6948aef012 [dc] add pprzlink digital cam module and factorize modules (#3111)
- new digital_cam_pprzlink module
- factorize module with digital_cam_common
- rename digital_cam to digital_cam_gpio
- add test nodes to modules
2023-09-27 14:31:14 +02:00
Gautier Hattenberger eb83c03928 [modules] indicate that digital cam modules are providing 'digital_cam' 2023-04-04 20:07:12 +02:00
Gautier Hattenberger e4d9e10492 [modules][ocaml] implement module dependency (#2669)
- support depends, conflicts and provides nodes, all under a 'dep' node
- autoload are kept for now and are not moved yet
- modules are updated for new dep format
- it is now required that module's name and filename are the same
2021-03-16 17:47:34 +01:00
Gautier Hattenberger 683037ad95 [datalink] parse the correct datalink buffer (#2494)
When using a different datalink buffer than dl_buffer, the callback
functions from the modules must use the buffer address passed as a
parameter, otherwise there is no guarentee that the correct buffer will
be parsed.

Co-authored-by: pprz <xp31@free.fr>
2020-03-16 10:30:38 +01:00
Gautier Hattenberger a5ed01bab4 [build] use 'default' instead of 'value' to pass default values 2016-02-12 00:03:18 +01:00
Gautier Hattenberger 904507a4e6 [build] add case modifier to modules' makefile
- this allow to use lower and upper version of a makefile variable.
- can also be use to provide default value to some variables.
2016-02-10 18:05:43 +01:00
Felix Ruess 74ebb5bad9 [modules] use configure for I2C_DEV 2015-11-16 17:39:53 +01:00
Christophe De Wagter 3d0d62898f [digital_cam] documentation 2015-09-01 09:33:07 +02:00
Christophe De Wagter a80eb7ce90 [module] digital_cam_video 2015-08-31 15:11:55 +02:00
Felix Ruess d412bc4519 [modules] digital_cam_x: specify times in seconds, don't limit periodic to 4Hz 2015-05-29 11:26:57 +02:00
Felix Ruess 8be5c426b6 [modules] start pimping dependencies
Start working on #940

This replaces
```xml
<depend require="foo|bar" conflict="baz"/>
```
with
```xml
<depends>foo,bar</depends>
<conflicts>baz</conflicts>
```

and now allows to specify OR dependencies with | (pipe) similaro to Debian depends:
```xml
<depends>foo,bar,this|that</depends>
```
which would depend on: foo AND bar AND (this OR that)
2014-12-08 10:33:28 +01:00
Felix Ruess ee64cbebe2 [modules] fix malformed xml files 2014-12-06 21:51:40 +01:00
Felix Ruess 8b6383a669 [modules] dc: more cleanup
- remove unneeded dc_buffer* variables
- replace SENSOR_SYNC_SEND with DC_SHOT_SYNC_SEND which defaults to TRUE
- add dc_distance function
- use dc_gps_count in distance mode
- cleanup some variables
2014-12-03 22:28:33 +01:00
Felix Ruess a55a7eaff9 [modules] digital_cam_x: add dc.h header 2014-12-03 22:27:39 +01:00
Felix Ruess 2ee7c82d94 [conf][i2c] changed all FOO_I2C_DEVICE defines to FOO_I2C_DEV to be consistent
While FOO_I2C_DEVICE is less ambiguous, FOO_I2C_DEV was choosen since most modules already use that.
Since this is a user facing config, rather keep existing configs working...
2013-01-13 18:52:20 +01:00
Felix Ruess e04623c872 [doc] some module description cleanups 2012-12-29 23:12:24 +01:00
Felix Ruess 54938b8aac [modules] update digital_cam docs 2012-08-04 13:26:03 +02:00
Gautier Hattenberger bcaba7c720 [modules documentation] Add a doc node to module
modules developpers can provide
- a description of the module
- a list of the configuration variables and flags (configure and define)
- a list of sections to add to the airframe file
2012-04-24 09:29:12 +02:00
Felix Ruess f77fae3361 cleanup trailing whitespaces 2011-08-18 09:47:40 +02:00
Gautier Hattenberger 6abfc9f91c update modules definition 2010-12-20 14:34:49 +01:00
dewagter 6edeee94a2 Digital Camera Triggering Control via LED and I2C-AVR 2010-11-26 11:14:12 +01:00