![Mackup for ever](https://loka.nahovitsyn.com/87.jpg)
If it can't, maybe we could get a program on the Teensy that would do the timer capture and output on UART or as an I2C slave. The last thing that would be awesome is timer capture on the GPIO, of at least the PPS and maybe others, like the interrupt lines from the sensors. That way I could look at it on the phone while (literally) in flight. It would also be great if the Pi could act like a wifi hotspot and serve SSH through it. That would be a lot less suspicious than stuffing stuff in my pocket. I have a belt bag big enough to hold all the sensors, the Pi, and a 20Ah USB battery pack. I want to see if I can do this with just the parts that I already have on my desk. Now the question is if it can record the sensors on I2C, and the time pulse. The Raspberry Pi has already proven itself capable of recording GPS from one of the ZED-F9R breakout boards. The pocketometer has all the right sensors for that, but unfortunately is not sufficiently reliable. On the cruise, and also on the plane, I wish to record GPS signals. Having given up on #SoME2, it's time to move on to the next project. The output is fed back to the phase detector to produce a proper closed-loop control system.It feeds this to the oscillator which then runs at the commanded frequency. I'm sure it does some fancy PID magic, which finds just the right output signal to keep the input error signal at zero. The voltage-controlled oscilator (VCO) then takes that signal as an error signal.The output is then some analog signal that is a function of the average of the phase detection signal. The low-pass filter takes the phase detection signal, treats it as a PWM, and converts it to analog just by running it throug a resistor-capacitor (RC) circuit.If they are out of phase, sometimes they will be on opposite sides and the phase detection will not be constant.
![hyperspace ramming hyperspace ramming](https://vignette.wikia.nocookie.net/elite-dangerous/images/e/eb/Elite_Dangerous_hyperspace_jump.png)
If the signals are in phase, they will always be on the same side of zero, and the phase detection output will be constant. I'm not sure of the details, but it might be something as simple as comparing both signals to zero (returning 1 if positive and 0 if negative) then XORing those comparisons. The phase detector produces a signal based on whether the reference and fed back signals are in phase.
![Mackup for ever](https://loka.nahovitsyn.com/87.jpg)