Search found 10 matches

by fredgrat
Tue Jul 28, 2015 12:25 pm
Forum: Developer Discussions
Topic: How to work around the maximum limit for log variables
Replies: 2
Views: 2630

Re: How to work around the maximum limit for log variables

Hi, thanks for the explanation. There is only one limitation to the number of log variable that I know off: the reported number of log table of content (TOC) element is 1 byte, so we can have a maximum of 255 log variables (I really should have made it 2 of 4 bytes, this is another case of "640...
by fredgrat
Mon Jul 27, 2015 8:50 pm
Forum: Developer Discussions
Topic: Free fall detection in firmware (stabilizer.c)
Replies: 3
Views: 4382

Re: Free fall detection in firmware (stabilizer.c)

Hi, I'm glad the code could help. I have looked into the Free Fall and the "Take-Off-by-Throwing" feature over the weekend, and have just created a pull request for the bitcraze guys: https://github.com/bitcraze/crazyflie-firmware/pull/59 The patch with free fall detection currently has on...
by fredgrat
Fri Jul 24, 2015 1:21 pm
Forum: Developer Discussions
Topic: Adding Analog Sensor to Crazyflie 2.0
Replies: 14
Views: 14287

Re: Adding Analog Sensor to Crazyflie 2.0

Hi, thanks for your response, I have placed a minimum of configuration options in config.h, and the rest in the drivers / modules respective .h file. Several cleanups and improvements since last patch, see the pull request here: https://github.com/bitcraze/crazyflie-firmware/pull/58 The proximity is...
by fredgrat
Fri Jul 24, 2015 9:35 am
Forum: Developer Discussions
Topic: How to work around the maximum limit for log variables
Replies: 2
Views: 2630

How to work around the maximum limit for log variables

Hi, I ran into a problem when adding more variables to a log group. It seems I ran into a maximum number of such variables, since I had to remove others to get the new ones transferred to the cfclient. So the question is: * Should we increase the maximum number of variables that can be logged? - Can...
by fredgrat
Thu Jul 23, 2015 12:04 am
Forum: Developer Discussions
Topic: Adding Analog Sensor to Crazyflie 2.0
Replies: 14
Views: 14287

Re: Adding Analog Sensor to Crazyflie 2.0

Hi, Thanks for merging the pull request :D Moving along, I have the following patch ready: https://github.com/bitcraze/crazyflie-firmware/compare/bigmerge...fredgrat:proximity Includes: * MaxBotix driver (using the analog interface of the MaxBotix sensor through deck_analog.[hc]) * New proximity.[hc...
by fredgrat
Wed Jul 22, 2015 9:57 am
Forum: Developer Discussions
Topic: Adding Analog Sensor to Crazyflie 2.0
Replies: 14
Views: 14287

Re: Adding Analog Sensor to Crazyflie 2.0

Auto take-off would be really nice! I am working on take-off-by-throwing, basically detecting free fall and subsequently starting altHold. You can see my comment on this in another thread here: https://forum.bitcraze.io/viewtopic.php?f=6&t=1584#p8308 The plan is to get the proximity sensor inte...
by fredgrat
Wed Jul 22, 2015 9:36 am
Forum: Developer Discussions
Topic: Free fall detection in firmware (stabilizer.c)
Replies: 3
Views: 4382

Re: Free fall detection in firmware (stabilizer.c)

Hi, (Just in case this could be helpful) I implemented a free fall detection some time ago, you can see the patch here: https://github.com/bitcraze/crazyflie-firmware/commit/df15594575ac64b8bfb5e992a0fcb549dc85895f To detect the free fall I did the following: * Checked against the accWZ variable (de...
by fredgrat
Tue Jul 21, 2015 11:57 pm
Forum: Developer Discussions
Topic: Adding Analog Sensor to Crazyflie 2.0
Replies: 14
Views: 14287

Re: Adding Analog Sensor to Crazyflie 2.0

Hi, I have created a pull request (hopefully in the correct way): https://github.com/bitcraze/crazyflie-firmware/pull/57/files It contains the following updates: * Contains only the deck API parts * NOTE: Now using ADC2 instead of ADC1. This since ADC1 has temp and vref internally wired to it, so a ...
by fredgrat
Tue Jul 21, 2015 10:09 am
Forum: Developer Discussions
Topic: Adding Analog Sensor to Crazyflie 2.0
Replies: 14
Views: 14287

Re: Adding Analog Sensor to Crazyflie 2.0

My plan is to implement at least the arduino api for the expansion port, it does not give full control on the hardware but it is easy to use (and already documented ;). This is what I have done with the GPIO and the same should be done with the analog pin but I did not have time for it yet. Hi, tha...
by fredgrat
Sat Jul 18, 2015 8:46 am
Forum: Developer Discussions
Topic: Adding Analog Sensor to Crazyflie 2.0
Replies: 14
Views: 14287

Re: Adding Analog Sensor to Crazyflie 2.0

As you figured out the adc_f103.c is for the STM32F103 MCU and is not really valid for CF2 even though it could be ported. We are working on a API that will make it easier to use all expansion port functions but for now one has to work with the ST lib. I found this article which does basic ADC read...