Skip to content

Commit

Permalink
Added default gyro LPS for pocket quad
Browse files Browse the repository at this point in the history
  • Loading branch information
bradquick committed Aug 8, 2013
1 parent a428fec commit e8d065b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project files/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

// un-comment if you don't want to include autotune code
//#define NO_AUTOTUNE

// To adjust how agressive the tuning is, adjust the AUTOTUNEMAXOSCILLATION value. A larger
// value will result in more agressive tuning. A lower value will result in softer tuning.
// It will rock back and forth between -AUTOTUNE_TARGET_ANGLE and AUTOTUNE_TARGET_ANGLE degrees
Expand All @@ -151,7 +152,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// then you are probably getting vibration feeding from your motors to your gyros.
// The first step is to isolate the control board from the frame of the aircraft (google Sorbothane). If all else fails,
// increase the GYRO_LOW_PASS_FILTER from 0 through 10. The lowest value that works correctly is the one you should use.
#define GYRO_LOW_PASS_FILTER 0
// Leave comment to use the default value.
//#define GYRO_LOW_PASS_FILTER 0

#define UNCRAHSABLE_MAX_ALTITUDE_OFFSET 30.0 // 30 meters above where uncrashability was enabled
#define UNCRAHSABLE_RADIUS 50.0 // 50 meter radius
Expand Down
8 changes: 8 additions & 0 deletions project files/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef MOTORS_STOP
#define MOTORS_STOP YES // allow the motors to stop when armed if not in acro or semi acro mode
#endif
#ifndef GYRO_LOW_PASS_FILTER
#define GYRO_LOW_PASS_FILTER 2
#endif

#elif (CONTROL_BOARD_TYPE==CONTROL_BOARD_SIRIUS_AIR || CONTROL_BOARD_TYPE==CONTROL_BOARD_SIRIUS_AIR_GPS)
#define MICROCONTROLLER_TYPE MEGA32U4
Expand Down Expand Up @@ -354,3 +357,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef MOTORS_STOP
#define MOTORS_STOP NO
#endif

// default low pass filter
#ifndef GYRO_LOW_PASS_FILTER
#define GYRO_LOW_PASS_FILTER 0
#endif

0 comments on commit e8d065b

Please sign in to comment.