Skip to content
Browse files

make it easy to disable the max diff

  • Loading branch information...
1 parent 48f7d7d commit bb7728af63f0486d0dd9f2e65351229a0e8dca6a @tridge committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pymavlink/examples/magfit_delta.py
View
2 pymavlink/examples/magfit_delta.py
@@ -90,7 +90,7 @@ def find_offsets(data, ofs):
# single crazy readings from throwing off the offsets for a long
# time
delta_length = delta.length()
- if delta_length > max_change:
+ if max_change != 0 and delta_length > max_change:
delta *= max_change / delta_length
# set the new offsets

0 comments on commit bb7728a

Please sign in to comment.
Something went wrong with that request. Please try again.