CorrectPitch: CorrectPitch

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate a correction to pitch based on the Schuler oscillation.

Usage

1
CorrectPitch(D, .span = 1013)

Arguments

D

a data.frame containing at least these variables: VNS, VEW, GGVNS, GGVEW, LAT or LATC, GGALT, THDG, PITCH, ROLL

.span

Smoothing interval for ground-speed accelerations. Default 1013; should be an odd number and is forced odd if even

Details

Uses measurements of the ground-speed error (as determined by comparison to GPS-measured ground-speed components) to estimate the error in pitch. This works best if long segments of flight are included in the input data.frame so there will be sufficient time to determine the Schuler oscillation well. For high-rate files, calculations are based on 1-Hz data and interpolated because the pitch correction is smoothed to be slowly varying over periods of several minutes.

Value

c(PitchError, RollError) – the estimated errors in the pitch and roll angles [deg], which should be subtracted from PITCH and ROLL to get the corrected values.

Author(s)

William Cooper

Examples

1
2
PITCHC <- RAFdata$PITCH - CorrectPitch (RAFdata, .span=51)[, 1]
ROLLC <- RAFdata$ROLL - CorrectPitch (RAFdata, .span=51)[, 2]

WilliamCooper/Ranadu documentation built on July 10, 2019, 12:40 a.m.