These are chat archives for dronekit/dronekit-android

14th
Sep 2016
pablomar13
@pablomar13
Sep 14 2016 00:54
@kellyschrock already figured it out... damn documentation I was using is not updated. Angle is in rad/s now...
mJaneBP
@mJaneBP
Sep 14 2016 02:14
@ne0fhyk Hi, thanks for your reply. But it still doesn't work. By package name do you mean "org.droidplanner.android" ? I set that for my API key, but this time it doesn't even show the :Authentication failed on the server error :( just doesn't show the map tiles on tablet
Fredia Huya-Kouadio
@ne0fhyk
Sep 14 2016 02:16
@mJaneBP org.droidplanner.android is only used for the app built for production, which I doubt you're doing
for a debug build, the app id is org.droidplanner.android.debug.
mJaneBP
@mJaneBP
Sep 14 2016 02:28
@ne0fhyk Sorry, I'm new to java/ android studio. So now I set the package id for the API key as you said, and use that API key, then it should be ok right?
mJaneBP
@mJaneBP
Sep 14 2016 02:38
@ne0fhyk nope (><) plz educate me, what did I got wrong?
Fredia Huya-Kouadio
@ne0fhyk
Sep 14 2016 02:42
@mJaneBP make sure you follow the instructions as pointed out in the link above. Also make sure that google map and google map tiles are enabled in the app. Could easily overlook something like that.
Asides from that, I'm not sure. The easiest way, if it doesn't work, would be to repeat the same process in a sample app for debugging.
mJaneBP
@mJaneBP
Sep 14 2016 03:02
@ne0fhyk What I did was go to the API console, create key with org.droidplanner.android.debug package name and my SHA1 signature, select android apps key restriction. then I paste that key to the manifest.xml file as in the guide. Sample Tower app works fine and does show the tiles, I also try to create a google map activity seperately and it also shows the tiles.
@ne0fhyk how do I enable/disable google map/tiles in the app? I checked the settings and don't see anything disabled
Fredia Huya-Kouadio
@ne0fhyk
Sep 14 2016 03:09
that sounds about right. is your build variant set to devDebug?
mJaneBP
@mJaneBP
Sep 14 2016 03:09
@ne0fhyk yes, it is set to devDebug
Fredia Huya-Kouadio
@ne0fhyk
Sep 14 2016 03:11
if you made the change recently, it might take some time to propagate. asides from that, I can't really think of anything else.
mJaneBP
@mJaneBP
Sep 14 2016 03:11
there are two other errors, but it still builds: Could not find class 'android.widget.ThemedSpinnerAdapter' and Could not find class 'android.net.NetworkRequest$Builder'
:]] I didn't make any changes yet
Fredia Huya-Kouadio
@ne0fhyk
Sep 14 2016 03:12
do you have the kotlin plugin installed?
mJaneBP
@mJaneBP
Sep 14 2016 03:13
I don't think so. Is it needed for the tiles?
Bill Bonney
@billbonney
Sep 14 2016 05:57
@ne0fhyk Oh…. now you metion Kotlin :stuck_out_tongue_winking_eye: :laughing:
mJaneBP
@mJaneBP
Sep 14 2016 06:40
@billbonney @@ you're scaring me.... I installed it but still the same?
Bill Bonney
@billbonney
Sep 14 2016 14:07
I just didn’t have kotlin installed and was getting a runtime error that I didn’t understand as bing that… I hvae complete build working ADS now, just installed the GMAP API Key… thanks @ne0fhyk for your help
mickeyjohn
@mickeyjohn
Sep 14 2016 20:04
I am new at this. Does any one know how to calculate camera sensor size info (sensor width, height and focal length) from FOVs? For example: given technical info from https://www.parrot.com/us/business-solutions/parrot-sequoia#technicals. They only provides the definition, VFOV, HFOV and DFOV. Thanks.
kalnir
@kalnir
Sep 14 2016 20:57
Is the magnetometer calibration in the CalibrationApi functional?
Fredia Huya-Kouadio
@ne0fhyk
Sep 14 2016 21:57
@mickeyjohn the parrot sequoia sensors sizes are already included in dk-android
@kalnir yes, it's used by the Solo Android and the Tower app for compass calibration.
only support Solo vehicles, and copters running ArduCopter v3.4+
pablomar13
@pablomar13
Sep 14 2016 23:22
@ne0fhyk @kellyschrock went testing the rotating method.... now I don't get the error message. I get a success message but it does not rotate...
turnTo public void turnTo(float targetAngle, float turnSpeed, boolean isClockwise, boolean isRelative, AbstractCommandListener listener)
Instructs the vehicle to turn to the specified target angle
Parameters:
targetAngle - Target angle in degrees [0-360], with 0 == north.
turnSpeed - Speed during turn in degrees per second
isClockwise - True for clockwise turn, false for counter clockwise turn
isRelative - True is the target angle is relative to the current vehicle attitude, false otherwise if it's absolute.
listener - Register a callback to receive update of the command execution state.
Up until now... this is what I found out: boolean isClockwise has dissapeared, turnSpeed is in rad/s not in degrees/s aaaaaaand it does not work for me :(
pablomar13
@pablomar13
Sep 14 2016 23:41
This is what it's in the dev branch in Github:
/**
 * Instructs the vehicle to turn to the specified target angle
 *
 * @param targetAngle Target angle in degrees [0-360], with 0 == north.
 * @param turnRate    Turning rate normalized to the range [-1.0f, 1.0f]. Positive values for clockwise turns, and negative values for counter-clockwise turns.
 * @param isRelative  True is the target angle is relative to the current vehicle attitude, false otherwise if it's absolute.
 * @param listener    Register a callback to receive update of the command execution state.
 */
This is what I'm testing:
ControlApi.getApi(drone).turnTo(angle,1,true,new AbstractCommandListener())
So...any ideas?