parse_primary_accelerometerC: Parse all primary accelerometer packets in a file

legacy_parse_primary_accelerometerCR Documentation

Parse all primary accelerometer packets in a file

Description

Parse all primary accelerometer packets in a file

Usage

legacy_parse_primary_accelerometerC(
  primary_records,
  log,
  scale_factor,
  samp_rate,
  verbose
)

dev_parse_primary_accelerometerC(
  packets,
  packet_no,
  zero_packet,
  samp_rate,
  scale_factor
)

Arguments

primary_records

DataFrame with information about each packet

log

RawVector containing all payload bytes

scale_factor

the accelerometer scale factor

samp_rate

the sampling rate

verbose

logical. Print updates to console?

packets

list of packets

packet_no

IntegerVector indicating which index of packets to use for each second of expected output. Values of -1 indicate a latch to the previous index

zero_packet

list containing a properly-formatted packet pre-filled with values of zero (used for USB connection events)

latch_packets

list of empty packets to be filled during latch periods


AGread documentation built on Sept. 13, 2022, 5:06 p.m.