1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 04:15:44 +03:00

make the accZ lpf used for althold configurable

set the variable accz_lpf_cutoff to the desired cutoff frequency
this can help to make althold smoother on copters with lots of
vibrations

Conflicts:

	src/cli.c
	src/config.c
	src/imu.c
	src/mw.h
This commit is contained in:
luggi 2014-06-03 16:32:18 +02:00 committed by Dominic Clifton
parent c53268b7be
commit 1bf806f54c
5 changed files with 13 additions and 5 deletions

View file

@ -296,6 +296,7 @@ const clivalue_t valueTable[] = {
{ "acc_lpf_factor", VAR_UINT8, &currentProfile.acc_lpf_factor, 0, 250 },
{ "accxy_deadband", VAR_UINT8, &currentProfile.accDeadband.xy, 0, 100 },
{ "accz_deadband", VAR_UINT8, &currentProfile.accDeadband.z, 0, 100 },
{ "accz_lpf_cutoff", VAR_FLOAT, &currentProfile.accz_lpf_cutoff, 1, 20 },
{ "acc_unarmedcal", VAR_UINT8, &currentProfile.acc_unarmedcal, 0, 1 },
{ "acc_trim_pitch", VAR_INT16, &currentProfile.accelerometerTrims.values.pitch, -300, 300 },
{ "acc_trim_roll", VAR_INT16, &currentProfile.accelerometerTrims.values.roll, -300, 300 },