Page 4 of 4

Re: sharp gp2y0a21yk0f

Posted: Sun Jan 17, 2016 7:59 pm
by mannaris
This is the console output, maybe it helps:

Code: Select all

SYS: ----------------------------
SYS: Crazyflie 2.0 is up and running!
SYS: Build 55:a691387f311f (2015.08.1-55) MODIFIED
0034 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
IMU: MPU9250 I2C connection [OK].
IMU: AK8963 I2C connection [OK].
IMU: LPS25H I2C connection [OK].
DECK_INFO: Found 0 deck memory.
DECK_CORE: 0 deck enumerated
DECK_CORE: Initializing compile-time forced driver myIrSensors
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
LPS25H: Self test [OK].
SYS: Free heap: 5312 bytes

Re: sharp gp2y0a21yk0f

Posted: Mon Jan 18, 2016 1:19 am
by chad
mannaris wrote:But the value from the sensor isnt right. I only see a regular graphic which isnt affected by the proximity in front of the sensor. Maybe my fault is that I have to insert a logging time, but have defined it yet in my driver. The sensor works fine, but the value cant be right. I hope you know how to help.
I'm afraid I can't help with that. I know nothing about that sensor or building out decks (yet). Maybe someone who's more experienced can walk you through troubleshooting that.

Re: sharp gp2y0a21yk0f

Posted: Wed Feb 03, 2016 11:33 pm
by mannaris
Hello,
im glad to say that my proximity sensor works fine and i got realistic sensor values in the client. After reaching this I ordered a sonar sensor and it works also fine. In this place first i want to say thank you for your help!
Yesterday i saw this post:
viewtopic.php?f=6&t=643
and after this i decovered this video:
https://www.youtube.com/watch?v=chWrNh73YBw

Then I got the idea, that i can try to connect the sensor output to the motor control, that means if the sensor value is higher than a explicite level the motor turns off or on. My first question is if this is possible?
In the video you can see how to create a parameter and how to add it. Now i need the sensor value as condition in stabilizer.c. How can i do that?

Thanksfull for every help!

mannaris

Re: sharp gp2y0a21yk0f

Posted: Thu Feb 04, 2016 11:59 pm
by mannaris
I have reached that the function to enable te motors is integrated. Now i need to include my range value from my little file to connect it with the parameter. How am i supposed to do that?