Added inversion variable to dive controller