wip: CoP calculation.