Complex sentence: The Royal Navy still regard "HMS Diamond Rock" as being in commission, and as such HM Ships are required, in passing to show due respect.
Split into simpler sentences: The Royal Navy still regards "HMS Diamond Rock" as being in commission. Therefore, HM Ships are required, when passing, to show due respect.