Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate INA226 with PX4 #12673

Merged
merged 5 commits into from
Dec 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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