Brushless motor control doubt....

Thanks!! I was just reading about the low pass filter and just found some examples!!

But attaching a low pass filter to the digital pwm output pin, could I replace this physical pot with just this signal pin and ground connected in the places where the pot's ground and wiper are?

I woud'nt need to connect anything on the pot's "leg" where it is 3V, right? Is it there just to provide a voltage divisor (on the wiper) from ground to 3V, correct?

Does it make sense? Thanks for your help!!