Exemplo n.º 1
0
        public void Start()
        {
            Gimbal.Start();
            CommunicationManager.Instance.StartReceivingCommunications();

            Gimbal.EnablePushMessaging(true);
        }
Exemplo n.º 2
0
    void SetApiKey()
    {
#if UNITY_IPHONE
        Gimbal.SetApiKey(iosApiKey);
#elif UNITY_ANDROID
        Gimbal.SetApiKey(androidApiKey);
#endif
    }
Exemplo n.º 3
0
        public MavsdkSystem(string host, int port)
        {
            _channel = new Channel(host, port, ChannelCredentials.Insecure);

            Action      = new Action(_channel);
            Calibration = new Calibration(_channel);
            Camera      = new Camera(_channel);
            Core        = new Core(_channel);
            Gimbal      = new Gimbal(_channel);
            Info        = new Info(_channel);
            Mission     = new Mission(_channel);
            Offboard    = new Offboard(_channel);
            Param       = new Param(_channel);
            Telemetry   = new Telemetry(_channel);
        }
Exemplo n.º 4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            if (!IsLocationPermissionEnabled())
            {
                ActivityCompat.RequestPermissions(this, new string[] { Manifest.Permission.AccessFineLocation, Manifest.Permission.AccessCoarseLocation }, LOCATION_PERMISSION_REQUEST_CODE);
            }

            Gimbal.SetApiKey(Application, "5fba002a-5a07-424e-8fa2-decf01fa96d3");

            IsPlayServicesAvailable();
            CreateNotificationChannel();


            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Exemplo n.º 5
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            var dict = NSDictionary.FromObjectAndKey((NSString)"MANAGE_PERMISSIONS", NSNumber.FromBoolean(false));

            Gimbal.SetAPIKey("5fba002a-5a07-424e-8fa2-decf01fa96d3", dict);

            if (options != null && options.ContainsKey(UIApplication.LaunchOptionsRemoteNotificationKey))
            {
                ProcessRemoteNotification(options[UIApplication.LaunchOptionsRemoteNotificationKey] as NSDictionary);
            }

            if (options != null && options.ContainsKey(UIApplication.LaunchOptionsLocalNotificationKey))
            {
                ProcessLocalNotification(options[UIApplication.LaunchOptionsLocationKey] as UILocalNotification, UIApplication.SharedApplication.ApplicationState);
            }

            RegisterForNotifications(app);

            return(base.FinishedLaunching(app, options));
        }
Exemplo n.º 6
0
 public void StartPlaceManager()
 {
     Gimbal.StartPlaceManager();
     isListeningForPlaces = false;
 }
Exemplo n.º 7
0
 public void StopBeaconManager()
 {
     Gimbal.StopBeaconManager();
     isListeningForBeacons = false;
 }
Exemplo n.º 8
0
 public void StartBeaconManager()
 {
     Gimbal.StartBeaconManager();
     isListeningForBeacons = true;
 }
Exemplo n.º 9
0
 public bool IsMonitoring()
 {
     return(Gimbal.IsMoitoring());
 }
Exemplo n.º 10
0
 public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
 {
     Gimbal.SetPushDeviceToken(deviceToken);
 }
Exemplo n.º 11
0
 public void Stop()
 {
     Gimbal.Stop();
 }
Exemplo n.º 12
0
 public void Stop()
 {
     Gimbal.Stop();
     PlaceManager.Instance.RemoveListener(placeEventListener);
     CommunicationManager.Instance.RemoveListener(communicationListener);
 }
Exemplo n.º 13
0
 private void Deserialize(JSONNode node)
 {
     rssi   = node["RSSI"].AsInt;
     beacon = new Beacon(node["beacon"]);
     date   = Gimbal.ConvertJsonDate(node["date"].Value);
 }
Exemplo n.º 14
0
 private void Start()
 {
     currentGimbal = Gimbal.regular;
     distance      = transform.position - regularGimbal.position;
 }
Exemplo n.º 15
0
 public void StopPlaceManager()
 {
     Gimbal.StopPlaceManager();
     isListeningForPlaces = true;
 }
Exemplo n.º 16
0
 private void Deserialize(JSONNode node)
 {
     place       = new Place(node["place"]);
     arrivalDate = Gimbal.ConvertJsonDate(node["arrivalDate"].Value);
 }
Exemplo n.º 17
0
 public void Start()
 {
     Gimbal.Start();
 }