Skip to content

Commit

Permalink
sixaxis: increase gyro move threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jan 12, 2025
1 parent ab0cea6 commit 682fa14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flight/sixaxis.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static bool test_gyro_move(const gyro_data_t *last_data, const gyro_data_t *data
bool did_move = false;
for (uint8_t i = 0; i < 3; i++) {
const float delta = fabsf(fabsf(last_data->gyro.axis[i] * GYRO_RANGE) - fabsf(data->gyro.axis[i] * GYRO_RANGE));
if (delta > 0.3f) {
if (delta > 0.5f) {
did_move = true;
break;
}
Expand Down

0 comments on commit 682fa14

Please sign in to comment.