Below is the graph of a trigonometric function. It has a maximum point at $\left(-5,2.5\right)$ and a minimum point at $\left(-1.7,-4.5\right)$.

**What is the midline equation of the function? **
$y=$ [[☃ math-keypad 2]]