Search found 2275 matches

by arnaud
Fri Dec 13, 2019 7:18 am
Forum: Autonomous flight
Topic: Frequent fly aways, toiletbowling and flips with Lighthouse positioning
Replies: 14
Views: 4685

Re: Frequent fly aways, toiletbowling and flips with Lighthouse positioning

We have not had time to look at the issue #522 yet. If the yaw estimation is the problem, you can comment this line to disable it: https://github.com/bitcraze/crazyflie-firmware/blob/af29d84/src/deck/drivers/src/lighthouse.c#L306. In that case you must of course make sure you start and reset the kal...
by arnaud
Fri Dec 13, 2019 7:13 am
Forum: Developer discussions
Topic: Parameter's manipulation
Replies: 10
Views: 3477

Re: Parameter's manipulation

If you tell me from where the function you wrote I called I can help you finding the task you are using. As I mention in your other thread, you can see the stack and CPU usage of tasks using the "task dump" button in the Crazyflie client console tab. If you take the dump of an unmodified firmware an...
by arnaud
Fri Dec 13, 2019 7:04 am
Forum: Bitcraze
Topic: Lighting Condition for Optical Flow Breakout Board
Replies: 6
Views: 988

Re: Lighting Condition for Optical Flow Breakout Board

The flow sensor works fast (I cannot remember how fast but I thinks its ~1KHz) and the chip accumulates movement in counters. So if you read faster, you should expect smaller readings from deltaX/deltaY counters.
by arnaud
Thu Dec 12, 2019 9:52 am
Forum: Developer discussions
Topic: Parameter's manipulation
Replies: 10
Views: 3477

Re: Parameter's manipulation

In C a static local variable is actually a global variable that can only be accessed from within the function. The hard-fault you are experiencing is likely due to stack overflow. The solution, beside avoiding local variable, is to increase the stack size. By the way, you can see the stack status of...
by arnaud
Thu Dec 12, 2019 9:19 am
Forum: Developer discussions
Topic: Parameter's manipulation
Replies: 10
Views: 3477

Re: Parameter's manipulation

Local variable will not help in this case anyway. This can be done with a global or static variable, for example: void function() { static bool firstRun = true; if (firstRun) { firstRun = false; // This is executed only the first time the function is call } else { // This is executed only the second...
by arnaud
Thu Dec 12, 2019 7:52 am
Forum: Developer discussions
Topic: Parameter's manipulation
Replies: 10
Views: 3477

Re: Parameter's manipulation

Yes, it will be the same variable stored in the same memory location. So setting it from one side will be seen from the other side.
by arnaud
Thu Dec 12, 2019 6:53 am
Forum: Developer discussions
Topic: Parameter's manipulation
Replies: 10
Views: 3477

Re: Parameter's manipulation

You do not need the param subsystem to achieve that. For you example, in ranger2.c you need to define the variable without static in the global scope, ie. outside any function (static actually makes it private to this file, you want the oposite): int switch; Then in multiranger.c you can declare the...
by arnaud
Thu Dec 12, 2019 6:47 am
Forum: Autonomous flight
Topic: Frequent fly aways, toiletbowling and flips with Lighthouse positioning
Replies: 14
Views: 4685

Re: Frequent fly aways, toiletbowling and flips with Lighthouse positioning

At the time of your initial message I beleive there was no yaw measurement taken from the lighthouse system, this meant that initial YAW was indeed very important to get a stable flight. With newer firmware we do measure the YAW from the system and so the initial YAW should not be a problem anymore....
by arnaud
Thu Dec 12, 2019 6:37 am
Forum: Bitcraze
Topic: Lighting Condition for Optical Flow Breakout Board
Replies: 6
Views: 988

Re: Lighting Condition for Optical Flow Breakout Board

Great, thanks for the update!
by arnaud
Thu Dec 12, 2019 6:35 am
Forum: Developer Discussions
Topic: Deviation issue
Replies: 10
Views: 1255

Re: Deviation issue

A note about your pointer use: if you just need to use a value from different file, you can declare it in the global scope in one file (int flow) and as extern in the other files (extern int flow). This way the linker will use the first file variable everywhere you use it as extern. As for the debug...