Skip to content

Commit a6c4dfd

Browse files
authored
Feature/multiple gpio inputs (#59)
* Add gpio 23 as input * Enable GPIO
1 parent 543a043 commit a6c4dfd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dexi/launch/dexi.launch.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<let name="droneblocks" value="false" />
44
<let name="sitl" value="false" />
55
<let name="led" value="true" />
6+
<let name="gpio" value="true" />
67
<let name="offboard" value="true" />
78

89
<!-- These can be passed in from command line -->

dexi_py/launch/gpio.launch.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ def generate_launch_description():
2828
{'pin': 22}
2929
]
3030
),
31+
Node(
32+
package='dexi_py',
33+
namespace='dexi',
34+
executable='gpio_reader',
35+
name='gpio_input_23',
36+
parameters = [
37+
{'pin': 23}
38+
]
39+
),
3140
Node(
3241
package='dexi_py',
3342
namespace='dexi',

0 commit comments

Comments
 (0)