This paper addresses the unbalanced voltage, subharmonic/dc-offset voltage, and low-frequency (LF)/high-frequency (HF) harmonics of a grid voltage tracking method based on second-order generalized integrators (SOGIs) in high voltage/frequency swing on a shipboard photovoltaic (PV)-diesel-battery hybrid power system. To perform this work, a kind of shipboard PV-diesel-battery hybrid power system structure was first analyzed, emphasizing both the active and reactive power (PQ) control strategy and the sensitivity of the phase-locked loop (PLL) that is crucial to the vessel's electrical networks. Then, the effect of grid voltage harmonics in SOGIs and of voltage/frequency swing on SOGI frequency-locked loop (SOGI-FLL) was studied. Meanwhile, aiming to the adverse power qualities of a shipboard power system (SPS), a SOGI-based structure with prefilter, a dc-offset block, and a positive sequence extractor (SOGI-FDE) was proposed. Finally, to overcome all of the vessel's grid problems, a new SOGI-based voltage tracking structure, SOGI-FDE-FLL, consisting of SOGI-FDE and SOGI-FLL, was proposed to achieve accurate grid voltage tracking rapidly. This proposed schematic was used as an adaptive grid voltage tracking method to a three-phase three-wire shipboard PV-diesel-battery hybrid power system. Experimental results were obtained validating this proposal.Energies 2018, 11, 732 2 of 20 the start-up and braking of sailing caused by the substantial rapid load of high-power propulsion changing, which will increase power losses and reduce SPS stability, reliability, and security [8,9]. Chinese SPS standards stipulate that the vessel's grid voltage and frequency variation range must be −10~+6% and −5~+5% respectively [10]. Meanwhile, presently there is extensive use of emerging diode rectifiers, pulsed power-electronics loads, non-linear loads, and asymmetrical loads in the SPSs, which arouse a series of power quality issues of harmonics, unbalanced voltage, as well as dc-offset voltage from scaling errors in the grid voltage measurement of grid current performance [11,12]. When the PV generation technique is applied on a ship for the shipboard PV-diesel-battery hybrid AC power system, a PV inverter is essential to convert PV battery direct currents into alternating currents that are synchronous to the grid. However, as the power capacity of a PV inverter is much lower than that of a diesel-engine synchronous generator for laying area limitations, the PV inverter has less grid-voltage regulation capability and is suitable for the current injection method by means of a diesel-engine synchronous generator working in standalone mode as a slack bus. Hence, how the vessel's fundamental frequency sequence voltage can be quickly and accurately tracked under such adverse grid conditions has become a critical concern with respect to shipboard PV-diesel-battery hybrid power systems.Usually, a phase-locked loop (PLL) in a synchronous reference frame (SRF-PLL) is used to detect the phase angle, amplitude, and frequency of the grid voltage...