Fixed the FOV and AGC mapping algorithm

Fixed the FOV and the AGC mapping algorithm.