Hi, Judd

May be you could

1) add

Code:
DEFINE OSCCAL_1K 1
@ the top of the code

2) Giving the link could have helped so much ...

http://www.rc-float-flying.rchomepag...w%20Driver.htm

shows the config is missing for GP3/MCLR ... used as an input

so, also add @ Top for PBP3
Code:
#CONFIG
 __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _BODEN_ON
#ENDCONFIG
Alain