A helicopter starts from rest at point $A$ and travels along the straight-line path with a constant acceleration $a$. If the speed $v=28 \mathrm{m} / \mathrm{s}$ when the altitude of the helicopter is $h=40 \mathrm{m},$ determine the values of $\dot{r}, \ddot{r}, \dot{\theta},$ and $\ddot{\theta}$ as measured by the tracking device at $O .$ At this instant, $\theta=40^{\circ},$ and the distance $d=160 \mathrm{m} .$ Neglect the small height of the tracking device above the ground.