These are chat archives for dronekit/dronekit-android

16th
Jun 2016
spynokia
@spynokia
Jun 16 2016 02:00
hello guys,Compile project Error:Authentication scheme 'all'(Authentication) is not supported by protocol 'file' please heleper
spynokia
@spynokia
Jun 16 2016 02:09
@laurenweinstein1 Error:Authentication scheme 'all'(Authentication) is not supported by protocol 'file'
Randy Mackay
@rmackay9
Jun 16 2016 07:16
@ne0fhyk, I've raised an issue for Tower here to do with Guided mode. Basically it's sending the wrong frame type for the altitude. So it's requesting an absolute altitude when I think it means to send a relative altitude. DroidPlanner/Tower#1761
This problem has been hidden because previously Copter didn't use the frame at all. In Copter-3.4 though it supports absolute and relative terrain altitudes.
Fredia Huya-Kouadio
@ne0fhyk
Jun 16 2016 07:40
@spynokia there's solution for this error in the tower gitter room: https://gitter.im/DroidPlanner/Tower
@rmackay9 thanks for the detailed issue!
@rmackay9 since the previous versions of copter didn't use the given frame type argument, what frame type were they using?
if i update to the correct frame type, is that usable on the previous versions as well?
MrTate8
@MrTate8
Jun 16 2016 17:29
@guantau Thank you so much!!! the change from 2.7.+ to 2.7.0 worked! I've been searching everywhere for this
One other quick question. If I flip the controller from STD to LTR and then send commands to the drone using an android device, will it move or will it just loiter at the launch point?
And if it just loiters at the launch point, how can I keep the drone in a stabilizing mode while I send it move commands. As of now I'm trying to make it move in a square with a payload but if its in standard mode it doesn't self stabilize and the weight throws it way off
Mathew Wright
@mwrightE38
Jun 16 2016 17:47
Hi all, I'm currently trying to implement the use of loiter_to_alt waypoints. I've created two classes. LoiterToAlt and LoiterToAltImpl. Both classes seem to have the same functionality as the other types of waypoints. get/set for each param, pack and unpack functions, the mission type function.
however i'm unable to get the waypoints to write to the drone. I'm assuming mavMsg.command = MAV_CMD.MAV_CMD_NAV_LOITER_TO_ALT; is what tells the drone which type of waypoint is being set. However even when I change this in some of the other classes (Circle to be exact) It still uses a loiter_turns wp. Is there something obvious that i'm missing?
Fredia Huya-Kouadio
@ne0fhyk
Jun 16 2016 17:50
@MrTate8 the drone needs to be in the GUIDED mode in order to loiter and obey commands that you send its way.
additionally, you can also place the drone in AUTO mode and send it a set of geo waypoints for it to navigate on the map
Fredia Huya-Kouadio
@ne0fhyk
Jun 16 2016 17:56
@mwrightE38 did you link the LoiterToAlt and LoiterToAltImpl classes through the ProxyUtils class
Mathew Wright
@mwrightE38
Jun 16 2016 18:08
@ne0fhyk Thanks for the quick reply! Yes, I did. I'm pretty confident I've linked everything properly and written code to implement it where needed. When using it as a waypoint in tower a waypoint appears my spinner appears and the values i'm using as defaults inside LoiterToAlt appear. However, it won't write to the drone. If I were to change what the mavMSG.command is equal to inside of the CircleImpl class would it change the type of command that is being written? say if I changed it from MAV_CMD.MAV_CMD_NAV_LOITER_TURNS to DO_LAND_START. Would it create it do land start waypoint instead?
MrTate8
@MrTate8
Jun 16 2016 18:10
@ne0fhyk So the drone, in the software, needs to be set to GUIDED. But what about the switch on the controller? If I put it in standard it doesn't self stabilize from the moment of takeoff.
The switch is either STD (Standard, which doesn't stabilize), LRT (Which does stabilize, but will it obey commands if the switch on the controller is in this mode?), and AUTO (which is for pre-set geopoints. I'm trying to make decisions on the fly)
pablomar13
@pablomar13
Jun 16 2016 19:10
One question, for those who have used the method: public void goTo(LatLong point,
boolean force,
AbstractCommandListener listener)
Latlong point... in which units does it have to be? Or what does it represent? There's nothing on the javadoc
MrTate8
@MrTate8
Jun 16 2016 20:15
Have you checked here: http://android.dronekit.io/javadoc/
In the bottom left, select 'LatLong' Class and then scroll down. It's in degrees @pablomar13
Fredia Huya-Kouadio
@ne0fhyk
Jun 16 2016 22:19
@mwrightE38 can you provide the implementation for your LoiterToAltImpl class. And yes, if you were to change the command field (and provide the adequate arguments for that command), it would change the command that's written to the drone
@mwrightE38 in addition, are you sure your drone can support the new command you added? did you try to load that command with another tool?
@MrTate8 using software like mission planner on pc, you can map the hardware switch to different mode
Fredia Huya-Kouadio
@ne0fhyk
Jun 16 2016 22:25
@MrTate8 but the drone will stay in whatever mode it was put in last, regardless of the switch position, so if you put the switch in STD, but change the mode to GUIDED via Tower, then the drone will be (and remain) in the GUIDED mode.
pablomar13
@pablomar13
Jun 16 2016 22:33
@MrTate8 It's in degrees yeah... dammit, I have to convert (x,y) relative position to GPS longitude,latitude. :(