pendulum: move pstate into pendulum.h, allow binary output generation
add lighttrail for generating pendulum lighttrails – maybe this is usable for calibration?