What is TOC, what does it do, and how does it come to play?

Discussions and questions about the Crazyradio
Post Reply
aesreal
Beginner
Posts: 22
Joined: Thu Mar 08, 2018 6:34 am

What is TOC, what does it do, and how does it come to play?

Post by aesreal »

Hi all,

This term has been around everywhere, and I still do not really understand what it means. Tried googling but I guess my googling skills are bad.

So, what exactly is TOC, what does it do in the crazyflie framework, and is it important? If so, why?

Would appreciate if someone can enlighten me on this!
aesreal
Beginner
Posts: 22
Joined: Thu Mar 08, 2018 6:34 am

Re: What is TOC, what does it do, and how does it come to play?

Post by aesreal »

So, I continued to study all the files available and TOC just means Table Of Contents. What this refer to in crazyflie seems to be a holder for all of the various parameters a crazyflie can have, and cfclient uses this to populate its tabs with data.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: What is TOC, what does it do, and how does it come to play?

Post by arnaud »

Yes this is right, TOC is table of content.

Crazyflie has been designed as a research and experimentation platform and so we designed two subsystem that helps a lot experimentation:
- Param: to read or write variables remotely. These variables are not modified in runtime by the Crazylfie and can be modified from the ground. This is used a lot for control and configuration.
- Log: to read variable remotely. These variable can be modified by the Crazyflie firmware at runtime and the ground can ask to get update on the variable values at regular interval by setting up log blocks.

To allow for easy development, these variable are declared in the code and a Table of Content (TOC) is requested by the client to get the names, types and handle/id of all the available variables. There is a TOC for log and one for param.

I hope this gives you some more background about how things are organized and why.
aesreal
Beginner
Posts: 22
Joined: Thu Mar 08, 2018 6:34 am

Re: What is TOC, what does it do, and how does it come to play?

Post by aesreal »

Hi arnaud,

Thanks for the verification! I have a question about TOC's Param subsystem here: viewtopic.php?f=8&t=3045
Would be grateful if you could take a look!
Post Reply