checkAxes: Detect and correct switched X and Y axes

View source: R/Process_ACC.R

checkAxesR Documentation

Detect and correct switched X and Y axes

Description

Detect and correct switched X and Y axes

Usage

checkAxes(data, ask = T, force = F)

Arguments

data

Vector of accelerometer X value

ask

If TRUE, function will plot roll and pitch then ask if axes should be flipped

force

If TRUE, function will always flip the x and y axes whether or not they appear flipped

Details

Different models of accelerometers can have the x and y channels flipped. This is particularly an issue between different configurations of Technosmart AxyTrek units. This functions provides two options for switching these axes back.

If force is set to true, then the function will automatically flip the axes, this option should only be used if you know that all of your data have this issue.

If ask is set to true, then the function will plot pitch and roll using the data, and ask the user if they want to flip the axes. On most seabirds there hould be more variability in the pitch than in the roll. If the roll plot appears more variable, then the axes should be flipped.


allisonglider/seabiRds documentation built on Feb. 14, 2025, 7:37 a.m.