Skip to content

Commit

Permalink
INA226: Integrate with PX4 (#12673)
Browse files Browse the repository at this point in the history
* Publish I2C battery data as battery_status
  • Loading branch information
Timothy Scott authored and BazookaJoe1900 committed Feb 3, 2020
1 parent a038a9a commit a69ae78
Show file tree
Hide file tree
Showing 7 changed files with 671 additions and 429 deletions.
4 changes: 2 additions & 2 deletions boards/px4/fmu-v5x/init/rc.board_sensors
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
adc start

# Start Digital power monitors
ina226 -b 1 start
ina226 -b 2 start
ina226 -b 0 -t 1 -f start
ina226 -b 1 -t 2 -f start

# Internal SPI bus ICM-20602
mpu6000 -R 8 -s -T 20602 start
Expand Down
2 changes: 2 additions & 0 deletions src/drivers/power_monitor/ina226/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ px4_add_module(
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
ina226_main.cpp
ina226.cpp
DEPENDS
battery
px4_work_queue
)
Loading

0 comments on commit a69ae78

Please sign in to comment.