Algorithm for changing reference mass settings for different wave environments and occupancy of the tank

Summary
Algorithm for changing reference mass settings for different wave environments and occupancy of the tank