Skip to content

Commit

Permalink
Makefile add scan-build target
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Jan 2, 2017
1 parent 69df188 commit 3f06415
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ tests_coverage:
test_startup_shutdown:
@$(call PX4_RUN,$(MAKE) --no-print-directory posix_sitl_test gazebo_standard_vtol HEADLESS=1 MEMORY_DEBUG=1)

scan-build:
export CCACHE_DISABLE=1
mkdir -p $(SRC_DIR)/build_posix_sitl_default_scan-build
cd $(SRC_DIR)/build_posix_sitl_default_scan-build && scan-build cmake .. -GNinja -DCONFIG=posix_sitl_default
scan-build cmake --build $(SRC_DIR)/build_posix_sitl_default_scan-build

package_firmware:
@zip --junk-paths Firmware.zip `find Binaries/. -name \*.px4`

Expand Down
2 changes: 1 addition & 1 deletion src/modules/commander/accelerometer_calibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ int do_accel_calibration(orb_advert_t *mavlink_log_pub)

float accel_offs[max_accel_sens][3];
float accel_T[max_accel_sens][3][3];
unsigned active_sensors;
unsigned active_sensors = 0;

/* measure and calculate offsets & scales */
if (res == PX4_OK) {
Expand Down

0 comments on commit 3f06415

Please sign in to comment.