I am trying to derive parameters for a triangular FMCW waveform such that the phase of the signal has consistency from one period to the next. Perhaps this is arbitrary and feel free to tell me so, but I have a bistatic FMCW system and as such I will be implementing a delay and freq offset calibration procedure on start up to sync the Tx and Rx sides.
So I wish to set my triangle FMCW period, FMCW bandwidth, and sample rate such that the resulting time domain output is clean and steady, however for some reason I'm not doing well with deriving it via some simple trig.
$$ \cos(2\pi f_0 t + \pi Rt^2) \\ \text{where } R=\frac{B}{T_p} $$ so at $t=0$ the argument is also $0$, so I would think I need to solve for a value of $T_p$ such that when $t=T_p$, the argument is equal to some large multiple of $2\pi$ while keeping in mind the sample rate should yield a whole number of samples per period.
This approach has not been working however, and I'm at a loss of what the issue is.
For additional info
$T_P$ is half of the full period of the triangular modulation waveform
for current parameters I have set
$$ sample rate = 8M\\ B = 1.6M \\ Tp = 1.25ms \\ $$
EDIT: Images to illustrate point
Note

