initial hubsan controller code