sharp gp2y0a21yk0f

Firmware/software/electronics/mechanics
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

Ok I have redownload the vm and now I can see all the folders, but if i open eclipse the package explorer doesnt show all folders. The deck folder, the platform folder and the tools folder are missing.
But I think the reinstall was very usefull. Thank you very much for your help!!
mannaris
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

After I add the driver without eclipse, add it it to the makefile and enable it. Then I flash the firmware in eclipse via radio without seeing all folders (in eclipse). Then I got this:

Code: Select all

23:15:06 **** Build of configuration Build (GNU) for project crazyflie-firmware ****
make cload 
../crazyflie-clients-python/bin/cfloader flash cf2.bin stm32-fw
Restart the Crazyflie you want to bootload in the next  10 seconds ... Cannot connect the bootloader!
make: *** [cload] Error 255
Makefile:317: recipe for target 'cload' failed

23:15:19 Build Finished (took 13s.527ms)

What should I do?
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: sharp gp2y0a21yk0f

Post by chad »

mannaris wrote:Ok I have redownload the vm and now I can see all the folders, but if i open eclipse the package explorer doesnt show all folders. The deck folder, the platform folder and the tools folder are missing.
But I think the reinstall was very usefull. Thank you very much for your help!!
mannaris
Eclipse is a little annoying that way. You can select the crazyflie-firmware project in the "Project Explorer" and either right-click and select "Refresh" from the context menu or hit F5. That will cause the folders to show up.
mannaris wrote:Then I got this:

Code: Select all

23:15:06 **** Build of configuration Build (GNU) for project crazyflie-firmware ****
make cload 
../crazyflie-clients-python/bin/cfloader flash cf2.bin stm32-fw
Restart the Crazyflie you want to bootload in the next  10 seconds ... Cannot connect the bootloader!
make: *** [cload] Error 255
Makefile:317: recipe for target 'cload' failed

23:15:19 Build Finished (took 13s.527ms)

What should I do?
Did you make sure to restart the Crazyflie within 10 seconds like the output says?
Restart the Crazyflie you want to bootload in the next 10 seconds ...
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

Ok now i can see all the folders in elipse and i have add all these things to the firmware, but:

Code: Select all

bitcraze@bitcraze-vm:~$ cd ~/projects/crazyflie-firmware
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ make all
  CLEAN_VERSION
  VTMPL version.c
  CC    version.o
make: *** No rule to make target 'modules/src/exptest.c', needed by 'exptest.o'.  Stop.
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ 
is this right?

and if i typed "make cload" i get this:

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ make cload
../crazyflie-clients-python/bin/cfloader flash cf2.bin stm32-fw
Restart the Crazyflie you want to bootload in the next  10 seconds ... Cannot connect the bootloader!
Makefile:317: recipe for target 'cload' failed
make: *** [cload] Error 255
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ make cload
../crazyflie-clients-python/bin/cfloader flash cf2.bin stm32-fw
Restart the Crazyflie you want to bootload in the next  10 seconds ... Cannot connect the bootloader!
Makefile:317: recipe for target 'cload' failed
make: *** [cload] Error 255
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ 
i have restart the crazyflie as soon as the signal came and the crazyradio is also recognised by the vm.
CAn i flash the firmware with eclipse?

and at least if i open the client the terminal show this:

Code: Select all

INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.input.inputreaders:Found readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Successfully initialized [linuxjsdev]
INFO:cfclient.utils.input.inputreaders:Could not initialize [pysdl2]: No SDL2 support on Linux
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['zmqpull', 'wiimote', 'leapmotion']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ library probably not installed (No module named zmq)
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named cwiid
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named Leap)
WARNING:cfclient.utils.zmq_param:Not enabling ZMQ param access, import failed (No module named zmq)
WARNING:cfclient.utils.zmq_led_driver:Not enabling ZMQ LED driver access,import failed (No module named zmq)
INFO:cfclient.utils.config:Dist config read from /home/bitcraze/projects/crazyflie-clients-python/lib/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/bitcraze/projects/crazyflie-clients-python/lib/../conf/config.json]
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
WARNING:cfclient.ui.tabs.GpsTab:GPS tab not enabled since no Pythonbindings for Marble was found
is this ok?

thank you very much!
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: sharp gp2y0a21yk0f

Post by chad »

mannaris wrote:Ok now i can see all the folders in elipse and i have add all these things to the firmware, but:

Code: Select all

bitcraze@bitcraze-vm:~$ cd ~/projects/crazyflie-firmware
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ make all
  CLEAN_VERSION
  VTMPL version.c
  CC    version.o
make: *** No rule to make target 'modules/src/exptest.c', needed by 'exptest.o'.  Stop.
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ 
is this right?
No. That is not right. Your firmware is not getting built. Did you add your new file "exptest" to the Makefile correctly?
mannaris wrote: and if i typed "make cload" i get this:

Code: Select all

bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ make cload
../crazyflie-clients-python/bin/cfloader flash cf2.bin stm32-fw
Restart the Crazyflie you want to bootload in the next  10 seconds ... Cannot connect the bootloader!
Makefile:317: recipe for target 'cload' failed
make: *** [cload] Error 255
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ make cload
../crazyflie-clients-python/bin/cfloader flash cf2.bin stm32-fw
Restart the Crazyflie you want to bootload in the next  10 seconds ... Cannot connect the bootloader!
Makefile:317: recipe for target 'cload' failed
make: *** [cload] Error 255
bitcraze@bitcraze-vm:~/projects/crazyflie-firmware$ 
i have restart the crazyflie as soon as the signal came and the crazyradio is also recognised by the vm.
CAn i flash the firmware with eclipse?
If the firmware is not getting built because of the error above, then the flash will fail. Also, are you sure you're restarting the Crazyflie into bootloader mode? You need to hold down the power button until the blue light flashes. Have you looked through the wiki at all? Getting the Crazyflie into bootloader mode is covered there. Yes, you can flash with eclipse.
mannaris wrote: and at least if i open the client the terminal show this:

Code: Select all

INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.input.inputreaders:Found readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Successfully initialized [linuxjsdev]
INFO:cfclient.utils.input.inputreaders:Could not initialize [pysdl2]: No SDL2 support on Linux
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['zmqpull', 'wiimote', 'leapmotion']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ library probably not installed (No module named zmq)
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named cwiid
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named Leap)
WARNING:cfclient.utils.zmq_param:Not enabling ZMQ param access, import failed (No module named zmq)
WARNING:cfclient.utils.zmq_led_driver:Not enabling ZMQ LED driver access,import failed (No module named zmq)
INFO:cfclient.utils.config:Dist config read from /home/bitcraze/projects/crazyflie-clients-python/lib/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/bitcraze/projects/crazyflie-clients-python/lib/../conf/config.json]
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
WARNING:cfclient.ui.tabs.GpsTab:GPS tab not enabled since no Pythonbindings for Marble was found
is this ok?

thank you very much!
Nothing looks wrong with the output for the client.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

But i have not added any file exptest.o to the firmware..i cant find it at modules/src/exptest...i have add my driverfile at the deck/driver/src folder..in the git repo i also cant find any file named exptest.o
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: sharp gp2y0a21yk0f

Post by chad »

That exptest.c file is in the crazyflie2 branch. You should be on the master branch. Change your branch to master then do a pull or run the update projects script on the desktop.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

I am sorry but i am not able to find this file in the folders. In eclipse i can see that i am on the master branch.. but i also dont find the file in the git repo...with crazyflie2 branch you mean crazyflie2-nrf-firmware?
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: sharp gp2y0a21yk0f

Post by chad »

mannaris wrote:I am sorry but i am not able to find this file in the folders. In eclipse i can see that i am on the master branch.. but i also dont find the file in the git repo...with crazyflie2 branch you mean crazyflie2-nrf-firmware?
With crazyflie2 branch I am talking about a branch of crazyflie2-firmware.

Have you updated your source tree? The exptest.c file is in deck/drivers/src on master whereas it's in modules/src on the crazyflie2 branch.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

I have reached that the firmware was able to flash succesfully and I can also initialise the logging framework in the client. 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.
mannaris
Post Reply