Set the gravity in the good frame in the hybrid inverse dynamics.