mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 21:57:35 +08:00
baro tuning: make hpf argument optional
This filter is often not needed. Setting the default value to -1 makes it optional.
This commit is contained in:
committed by
Mathieu Bresciani
parent
9257744da3
commit
7b3d168af1
+1
-1
@@ -226,7 +226,7 @@ if __name__ == '__main__':
|
||||
|
||||
# Provide parameter file path and name
|
||||
parser.add_argument('logfile', help='Full ulog file path, name and extension', type=str)
|
||||
parser.add_argument('--hpf', help='Cuttoff frequency of high-pass filter on baro error (Hz)', type=float)
|
||||
parser.add_argument('--hpf', help='Cuttoff frequency of high-pass filter on baro error (Hz)', type=float, default=-1)
|
||||
args = parser.parse_args()
|
||||
|
||||
logfile = os.path.abspath(args.logfile) # Convert to absolute path
|
||||
|
||||
Reference in New Issue
Block a user