FIR Filter Code _ not getting reasonable results

The PI problem can be fixed by replacing each occurrence of 22/7 by 3.141592654

I don't know enough about FIR filters to help you with the specifics of your application.
But, why are you using a high-pass filter and how do you know that what you are getting is wrong?
The data shown in Capture.JPG looks like the filtered output is a sawtooth waveform.

Pete