Search found 15 matches

by Nyothan
Fri Nov 06, 2015 3:24 pm
Forum: Bitcraze
Topic: Certyflie at Student Demo Cup
Replies: 0
Views: 1997

Certyflie at Student Demo Cup

Hello everyone, During a 6 months internship at AdaCore, I reimplemented the Crazyflie firmware using SPARK, a technology based on formal methods used to prove code correctness. Here is a link to a previous topic where I presented the work I was doing: https://forum.bitcraze.io/viewtopic.php?f=6&...
by Nyothan
Thu May 28, 2015 10:33 am
Forum: Developer Discussions
Topic: Reimplementation of the Crazyflie firmware in SPARK
Replies: 3
Views: 3660

Re: Reimplementation of the Crazyflie firmware in SPARK

Hello Bitcraze community ;)

I've done a blog post explaining all the work I've been doing on the Crazyflie firmware using SPARK on the AdaCore Blog.

For those who are interested, here is the link: http://blog.adacore.com/how-to-prevent- ... sing-spark

Enjoy :)
by Nyothan
Fri May 22, 2015 8:47 am
Forum: Developer Discussions
Topic: Crtp Protocol - connection procedure between client and CF
Replies: 1
Views: 1560

Re: Crtp Protocol - connection procedure between client and

I forgot to mention that I didn't rewrite the LOG/Param subsystem yet: thus, I don't send the TOC to the python client when starting. I don't know if it's mandatory for the client to get the TOC at start...

Thanks in advance for your answers :)
by Nyothan
Thu May 21, 2015 10:28 am
Forum: Developer Discussions
Topic: Crtp Protocol - connection procedure between client and CF
Replies: 1
Views: 1560

Crtp Protocol - connection procedure between client and CF

Hello everyone! I have translated the whole CRTP communication protocol in Ada and I'm receiving radio packets in the CRTP_PORT_LINK. The crtpservice module seems to handle a sort of acknowledgement between the Crazyflie and the python client, and the packet channel seems to determine what response ...
by Nyothan
Thu Apr 23, 2015 12:28 pm
Forum: Developer Discussions
Topic: LOG subsystem and sections
Replies: 1
Views: 1536

LOG subsystem and sections

Hello everyone, I want to implement the Crazyflie LOG subsystem in ADA. I'm trying to figure out how it works in log.h and log.c. I see that the macros used to register Log groups with the variables to be logged (LOG_GROUP_START, LOG_GROUP_STOP) puts all the 'log_s' structures (containing the type, ...
by Nyothan
Wed Apr 22, 2015 9:52 am
Forum: Developer Discussions
Topic: console.c: fail to understand some code
Replies: 5
Views: 2785

Re: console.c: fail to understand some code

Yes exactly and you would be able to see this in the console output when "<F>" is displayed.
Ok, I see how the things work now.

Thank you for your answers ;)
by Nyothan
Tue Apr 21, 2015 9:52 am
Forum: Developer Discussions
Topic: console.c: fail to understand some code
Replies: 5
Views: 2785

Re: console.c: fail to understand some code

Ok I see. But nothing is done to recover from this situation, right?

So if many calls to 'consolePuts' (via DEBUG_PRINT) are done during startup, when the CF is not yet connected, some of these messages will never be sent to the client python, am I right?
by Nyothan
Mon Apr 20, 2015 7:25 am
Forum: Developer Discussions
Topic: console.c: fail to understand some code
Replies: 5
Views: 2785

Re: console.c: fail to understand some code

Nobody can help? :)
by Nyothan
Fri Apr 17, 2015 3:18 pm
Forum: Developer Discussions
Topic: console.c: fail to understand some code
Replies: 5
Views: 2785

console.c: fail to understand some code

Hi everybody, I'm currently trying to translate the Crazyflie 2.0 firmware in ADA. Looking deeper in the code, I don't understand this piece of code, located in console.c: static const char fullMsg[] = "<F>\n"; // ... int consolePutchar(int ch) { int i; // ... if (ch == '\n' || messageToPr...
by Nyothan
Mon Apr 13, 2015 9:52 am
Forum: Developer Discussions
Topic: CRTP Protocol - Syslink packet dispatching
Replies: 3
Views: 2723

Re: CRTP Protocol - Syslink packet dispatching

Well I understant that you want to "convert" the Syslink packet into a CRTPPacket by "filling" the CRTPPacket with the Sysling length (previously decreased, to remove the 'type' component of the Syslink packet). But the problem is that the size of the CRTPPacket struct is 32 byte...