time to destination on google assistant sdk using raspberry pi 3 - raspberry-pi3

I am working on Google Assistant SDK on raspberry pi 3. Is there any way to get the functionality of "time to a certain destination?". I'm getting a blank response when I ask this question.

Related

Using DJI SDK offline

I am starting to get used to Android DJI Mobile SKD... Even successfully got DJI FPV sample code running on my Phantom 4 Pro+ GL300E screen (SDK 22).
My problem: it seems that an app using the SDK has to get the internet connection to be able to register to DJI before doing anything.
Such process apparently doesn't happen only once, but occurs every time I run my application.
My need: I should be able to use my UAV in the countryside, without any internet connection of course: will I be able to use a DJI-SDK based application in such conditions?
You only need to register the SDK once via internet. After the first successful registration, the app remembers it and you can use your app on offline mode. You will however need to activate it again if you make a clean installation.
Btw:
You don't need to have a SIM inserted to use your App.
You don't need to login to your DJI account to use your App.
The SDK seems to connect to the internet on it's own from time to time. The purpose is unknown to me but I guess it's e.g. to retrieve updates for the flySafe Database (FlyZoneManager).
To ensure the SDK does not connect to the internet apart from app activation you can additionally use the LocalDataManager (LDMManager) accessible from the DJISDKManager:
if(DJISDKManager.getInstance().getLDMManager().isLDMSupported()) {
DJISDKManager.getInstance().getLDMManager().enableLDM();
}

DJI Windows sample code - USB connection - cannot view FPV

Using VS 2019 and Windows SDK 0.3.1 I cloned and executed the SDK sample code correctly. Trying to connect to the smart controller of Mavic 2 doesn't work.
FPV page says 'turn work mode green first'. I guess there is no outgoing serial communication from the sample code towards controller.
Connection with Assistant 2 Mavic does work normal.
Device manager shows under Com and LPT: CDC Serial (Interface 1) COM4 and under USB devices: ADB interface.
Component handler doesn't communicate either with the controller.
I am clearly missing something in setting up correctly the USB connection between the sample code and controller.
Thx
I think I had a similar issue recently Martin. I was trying to follow the DJI/Windows SDK tutorials and got the DJISdkManager to register but could not invoke the FPV on my Mavic 2 Pro.
I ended up following the guidelines here
Turns out I think I had the wrong version of DJI Assistant 2 installed (legacy from having a Mavic 1) I updated and used the Zadig program to install a WinUSB driver for the remote controller. After that, I got the FPV working handily enough.
This might help.
Edit: Link to the correct version of the software I had to install.
Just got the reply from DJI dev.
Windows SDK is not compatible with the smart controller, only with regular controller.

DJI Windows SDK Sample Code: Cannot view FPV mode on Mavic 2 Pro

I am using the example code provided by DJI for Windows SDK to connect with a Mavic 2 Pro. I can receive the name of the drone, subscribe to update on velocities and see them. However, I cannot get any video when I click on the FPV nor use the playback, where workmode turns on green but then there is a time out when I click on reload:
LaunchFileDataTask get files:REQUEST_TIMEOUT: Switch Mode or try again
I am using:
Visual Studio Professional 2017 Version 15.9.5
Latest version of the drone and radio controller.
Latest version of Windows SDK
Windows Enterprise Version 1803
I have installed all the drivers and done the Guidance to Connect with Mavic 2 Pro. I have checked on Device Manager when the controller is connected and I see the following devices:
Vision (Interface 3)
DJI USB Virtual COM
Also, I have uninstall and install all DJI's program, and drivers.
Solution
So, after several attempts and different approaches I solved the problem. I figure out that all the drivers provided on DJI Assist 2 for Mavic and DJI Simulator do not comply with the requirements to get the images from the Mavic. So the solution was to use zadig. Once on the program and the controller on and plug to the computer, select Options->List all devices. Now, it should be visible the driver libusb, selected and then click on replace driver.
Lol I was doing beta test for DJI WSDK. didn`t encounter this. The only problem is the limited selection of drone.
Here is a checklist, cross them out 1 by 1 to rule out the issue.
USB Authority Configuration in UWP
Connection sequence
Make sure that before connecting using your cable, your P4P V2.0 remote controller is off.
Connect the remote controller to your computer using Micro-USB cable.
Turn on your remote controller.
Make sure you have not open the DJI software like DJI Assistant 2.
DJI Windows SDK Applications are not able to communicate with the aircrafts at the same time.
3 Make sure that you have installed DJI Assistant 2 and have enabled all the driver intallation while installing DJI Assistant 2.
4 WinUSB Driver
Your error seems is a connection issue. But once you pass that there are a few more thing you have to check
make sure you have FFMpeg dlls in the directory
I`ll add more if I remember more. Currently, this is all I can think of

Set different language on assistant using hotword sample script

I am running the Google Assistant SDK on a Raspberry PI 3.
With the recent update to the Google Assistant SDK, it is mentioned that we should now be able to change the language of the assistant running on our device.
After registering the model and creating an instance of the device (as per the instructions), I can now see the device under the "My Devices" section of the Google Assistant App. I set the language to French but still the assistant is listening and speaking in English.
After looking at the sample code on Github, I see that there is a --lang flag that can be used for the textinput.py and pushtotalk.py scripts. This flag works perfectly fine for those scripts, but is not available for the hotword.py script.
Anyone was able to set a language other than English for the Google Assistant SDK with the hotword?
We published a new release that should address the language selection issue with the hotwording sample:
https://pypi.python.org/pypi/google-assistant-sdk/0.4.1
Can you give it another try using the instructions in the bug report?
https://github.com/googlesamples/assistant-sdk-python/issues/146#issuecomment-354217352

Bluemix IOT foundation Launch Dashboard keeps spinning on MAC (works on Windows)

I started the IOT Foundation service following the steps in Jeff Sloyer's tutorial on using a Raspberry Pi, Python, etc. I start the IOT service, and I get the page to Launch Dashboard. However, when I do this, it just spins.
I found the similar question where someone else hit a launch dashboard problem on a MAC where they got it working on another platform, so I tried it from Windows. Windows is working fine. But, I can't get the dashboard from my Mac, which is the laptop I want to work on. The similar question had no resolution, and wouldn't let me add a comment to it, hence a new question.
There was a defect which has now been fixed and the IoT dashboard should work on safari browsers.

Resources