Search found 8 matches

by Spordos
Thu Jun 24, 2021 12:25 pm
Forum: Developer Discussions
Topic: Set altHoldMode parameter from mobile application without using radio
Replies: 10
Views: 2297

Re: Set altHoldMode parameter from mobile application without using radio

Okey, I have it working now over bluetooth, but only over single packet, split packages seem to arrive correctly now, but only arrive/trigger the setting of the parameter less than 10% of my tries, while single packet always triggers correctly, So for split packets to work correctly it might be need...
by Spordos
Thu Jun 24, 2021 11:08 am
Forum: Developer Discussions
Topic: Set altHoldMode parameter from mobile application without using radio
Replies: 10
Views: 2297

Re: Set altHoldMode parameter from mobile application without using radio

I also found the problem of the type mismatch. This problem is acutally introduced by Core Parametetes. Normally, the parameter has an bit value of 8, but in the PARAM ADD CORE, it is bitwise OR'd with bit value 32. This creates an 40 for typevalue for this variable, making it no longer lineup with ...
by Spordos
Thu Jun 24, 2021 10:29 am
Forum: Developer Discussions
Topic: Set altHoldMode parameter from mobile application without using radio
Replies: 10
Views: 2297

Re: Set altHoldMode parameter from mobile application without using radio

I found the bug in split package: Function: private void sendSplitPacket(CrtpPacket packet) { //send plain bytearrays with controlbyte header // controlbyte + crtpheader + payload (19bytes) byte[] firstPacket = new byte[20]; firstPacket[0] = new ControlByte(true, pid, packet.toByteArray().length).to...
by Spordos
Wed Jun 16, 2021 10:00 am
Forum: Developer Discussions
Topic: Set altHoldMode parameter from mobile application without using radio
Replies: 10
Views: 2297

Re: Set altHoldMode parameter from mobile application without using radio

Regarding how i'm testing it. From earlier tests with the PC client im sure the activation of the assisted mode also works if not already in flight (I tested it just now to be sure). I am testing whether my package was received using DEBUG_PRNT in the firmware, but I am noticing that either not all ...
by Spordos
Wed Jun 16, 2021 9:45 am
Forum: Developer Discussions
Topic: Set altHoldMode parameter from mobile application without using radio
Replies: 10
Views: 2297

Re: Set altHoldMode parameter from mobile application without using radio

One thing i just found while looking into the receiving end of the packages is that a part of the parameter name gets lost somewhere in the firmware. It receives flightmode as group (which is good), but name gets converted to althol instead of the complete name: althold.
by Spordos
Tue Jun 15, 2021 3:19 pm
Forum: Developer Discussions
Topic: Set altHoldMode parameter from mobile application without using radio
Replies: 10
Views: 2297

Re: Set altHoldMode parameter from mobile application without using radio

I have tried implementing "set by name", but the crazyflie still seems unresponsive to the packets I am sending out. This is my code: functioncall mCrazyflie.setParamValueBle("flightmode.althold", hover ? 1 : 0, VariableType.UINT8_T); function public void setValueBle(String compl...
by Spordos
Mon Jun 14, 2021 9:05 am
Forum: Developer Discussions
Topic: Set altHoldMode parameter from mobile application without using radio
Replies: 10
Views: 2297

Set altHoldMode parameter from mobile application without using radio

Hello, I am working on alternative features for the mobile crazyflie application and am currently trying to add the ablity to enable altitude hold modus through the mobile (android) application using the BleLink. I am currently running into the issue that writing this parameter currently only seems ...
by Spordos
Mon May 17, 2021 11:22 am
Forum: Bitcraze
Topic: Trying to improve altitude hold mode using baro
Replies: 1
Views: 1131

Trying to improve altitude hold mode using baro

For an internship im currently looking to improve the altitude hold assist mode, but I am struggling to find the scripts responsible for this mode's functionality. Can anyone point me in the right direction?