Redistribution and use in source and binary forms, with or without modification, are permitted provided the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file gpsppssync_main.cpp.
#include <windows.h>
#include <process.h>
#include <math.h>
#include <string>
#include <time.h>
#include <queue>
#include "SerialPortClass.h"
#include "novatel.h"
#include "time_conversion.h"
#include "gpsppssync_OptionFile.h"
#include "gnss_error.h"
Go to the source code of this file.
Namespaces | |
namespace | std |
Functions | |
bool | PerformGPSPCTimeSync_NovAtelOEM3 (const unsigned SerialPortNumber, const unsigned SerialPortNumberOnReceiver, const bool PerformPPSTest, const bool AllowTimeForHyperTerminalComparison) |
bool | PerformGPSPCTimeSync_NovAtelOEM4 (const unsigned SerialPortNumber, const unsigned SerialPortNumberOnReceiver, const bool PerformPPSTest, const bool AllowTimeForHyperTerminalComparison) |
bool | SendCommand (SerialPort &port, std::string msg) |
Send a message to the receiver. Echo the command to the terminal. |
bool PerformGPSPCTimeSync_NovAtelOEM3 | ( | const unsigned | SerialPortNumber, | |
const unsigned | SerialPortNumberOnReceiver, | |||
const bool | PerformPPSTest, | |||
const bool | AllowTimeForHyperTerminalComparison | |||
) |
A non-threaded function to open a com port to an oem3 and sync the PC time to GPS time using serial communications to establish coarse time, then using the PPS which is connected to pin 9 of the serial link to establish fine time.
SerialPortNumber | The COM port number. |
SerialPortNumberOnReceiver | The COM port number to log data from on the receiver. |
PerformPPSTest | A boolean to indicate if the pulse per second (on pin 9, ring indicator pin) is to be used for fine time synchronization. |
AllowTimeForHyperTerminalComparison | A boolean to indicate if 40s with time display and audible dings are to be used to check the synchronization manually. |
Definition at line 162 of file gpsppssync_main.cpp.
bool PerformGPSPCTimeSync_NovAtelOEM4 | ( | const unsigned | SerialPortNumber, | |
const unsigned | SerialPortNumberOnReceiver, | |||
const bool | PerformPPSTest, | |||
const bool | AllowTimeForHyperTerminalComparison | |||
) |
A non-threaded function to open a com port to an oem4 and sync the PC time to GPS time using serial communications to establish coarse time, then using the PPS which is connected to pin 9 of the serial link to establish fine time.
SerialPortNumber | The COM port number. |
SerialPortNumberOnReceiver | The COM port number to log data from on the receiver. |
PerformPPSTest | A boolean to indicate if the pulse per second (on pin 9, ring indicator pin) is to be used for fine time synchronization. |
AllowTimeForHyperTerminalComparison | A boolean to indicate if 40s with time display and audible dings are to be used to check the synchronization manually. |
Definition at line 736 of file gpsppssync_main.cpp.
bool SendCommand | ( | SerialPort & | port, | |
std::string | msg | |||
) |
Send a message to the receiver. Echo the command to the terminal.
Definition at line 1263 of file gpsppssync_main.cpp.