added pwm low pass and changed sun pos measurement