Skip to content

Commit

Permalink
Fix for IMU2-related BAD ACCELL HEALTH error
Browse files Browse the repository at this point in the history
  • Loading branch information
dipspb committed Nov 5, 2015
1 parent ce60265 commit 0a766e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/px4fmu/fmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ PX4FMU::init()
/* reset GPIOs */
gpio_reset();

/* reset sensors */
/* to properly discharge lsm303d to avoid BAD ACCEL HEALTH error on IMU2 */
sensor_reset(20 /* ms */);

/* start the IO interface task */
_task = task_spawn_cmd("fmuservo",
SCHED_DEFAULT,
Expand Down

0 comments on commit 0a766e2

Please sign in to comment.