Trim resistance based on real-time power data

Initial support for trimming the selected resistance based on real-time power data
Only attempt to trim resistance after load has been static for n samples
Adjust trim parameters following initial testing