updates to gimbal.c