This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:virtualmachine:index [2013-07-26 14:11] andrewe [Configuration] |
projects:virtualmachine:index [2021-06-24 16:16] (current) kimberly |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bitcraze Virtual Machine ====== | + | <WRAP center round important 60%> |
- | In order to easily get going with the development | + | This page has deprecated and moved to the new documentation framework |
+ | </ | ||
- | If you would like to create your own virtual machine instead of downloading ours, then have a look at [[projects: | ||
- | **Please note:** All the instructions here (and on sub-pages) are always updated to match the latest available version of the VM and might not be valid for earlier versions. | + | ====== Bitcraze Virtual Machine ====== |
+ | In order to easily get going with the development of Bitcraze projects we have pre-configured a virtual machine that can be imported into [[https:// | ||
- | ====== Download ====== | + | <WRAP center round info> |
- | You can download the VM using one of the link below: | + | //**Note**// |
- | * Bitcraze VM 0.2 via [[http://tracker.bitcraze.se/torrents/UbuntuBitcraze_0.2.ova.torrent|torrent]] | + | The virtual machine can also be imported into [[http://www.vmware.com/products/player/|WM Player]] however you will then have to install the [[https://www.vmware.com/support/ |
- | * Bitcraze VM 0.3 via [[http://taffanel.org/tracker/torrents/Bitcraze%20VM%200.3.ova.torrent|torrent]] | + | </WRAP> |
- | * Bitcraze VM 0.3 from [[https://mega.co.nz/#!ScQh1KRQ!azKj-0LhnIDyWH5mCvauZTWwLzM4lbJWi9MTBmT_nEI|here]] (hosted at MEGA so it's limited to 6 downloads at a time) | + | |
- | ====== VM info ====== | + | |
- | The latest available version of the VM is 0.3. | + | |
- | < | + | |
- | OS : Xubuntu 13.04 | + | |
- | HDD : ~8.8 GB (dynamically sized) | + | |
- | RAM : 1 GB | + | |
- | User: bitcraze | + | |
- | Pass: crazyflie | + | |
- | </code> | + | |
- | ===== Configuration ===== | + | The VM is built using Packer, so if you would like to build you're own just clone the [[https:// |
- | The VM comes pre-configured with the following: | + | |
- | * udev rules for Crazyradio and bootloader | + | |
- | * Pre-configured USB filters for passing Crazyradio/NRF BOOT to the VM (not enabled by default) | + | |
- | **NOTE**: The USB filters in the 0.3 version of the VM specify | + | For information on how to install |
- | ===== Installed software | + | ====== |
- | Below is a overview of what's installed in the virtual machine: | + | To download |
- | * VirtualBox guest additions (for network sharing, screen resize, etc) | + | |
- | * gnu-arm-none-eabi toolchain and build tools | + | |
- | * Mercurial | + | |
- | * TortoiseHG | + | |
- | * pyusb, pygame and pyqt | + | |
- | * Qt4 and QtDesigner | + | |
- | * KiCad | + | |
- | * Eclipse with compiling/ | + | |
- | * gedit | + | |
- | * SDCC 3.2 | + | |
- | + | ||
- | ===== Projects | + | |
- | The following projects are cloned into the VM: | + | |
- | * crazyflie-firmware | + | |
- | * crazyflie-bootloader | + | |
- | * crazyflie-pc-client | + | |
- | * crazyradio-firmware | + | |
- | * crazyradio-electronics | + | |
- | + | ||
- | There are also short-cuts on the desktop to easily run the Crazyflie PC client and also to update all the projects to the latest version | + | |
- | + | ||
- | ===== Development ===== | + | |
- | The VM comes pre-installed and pre-configured for development. Here's what you can do: | + | |
- | * Update and build the latest versions of the Crazyflie/ | + | |
- | * [[projects:virtualmachine: | + | |
- | * View and modify the Crazyradio electronics design | + | |
- | * Develop for Crazyflie PC client with QtDesigner for the UI | + | |
- | ===== HOW-TOs ===== | + | |
- | ==== Update all the projects ==== | + | |
- | If you would like to update to the latest version from Bitbucket for all the projects you can either use the short-cut on the desktop (//Update all projects//) or run the following command: | + | |
- | < | + | |
- | /home/bitcraze/bin/update_all_projects.sh | + | |
- | </ | + | |
- | + | ||
- | ==== Run the Crazyflie PC client ==== | + | |
- | If you would like to fly the Crazyflie then you should to the following: | + | |
- | * Insert the controller and Crazyradio and pass them to the VM. In VirtualBox this is done by right-clicking on the USB icon in the bottom left hand of the screen and selecting the Crazyradio and the controller | + | |
- | * Start the cfclient either by using the short-cut on the desktop (// | + | |
- | * Press the //Connect// button and select the URI starting with //radio// and then press //Connect// | + | |
- | **PLEASE NOTE:** If no controller is passed to VirtualBox the default controller will be the //VirtualBox USB Tablet//. This device together with the default controller mapping will set the thrust depending on where the mouse-pointer is on the screen. Make sure to check that there' | + | ==== Previous version ==== |
+ | | ||
+ | | ||
+ | | ||
- | ==== How do I pull the latest stable release from the repository on Bitbucket? | + | ====== Tutorials ====== |
- | Pulling the latest stable release of the firmware | + | [[projects: |
- | < | + | |
- | cd ~/ | + | |
- | hg pull && hg update -C 2013.4 | + | |
- | cd ~/ | + | |
- | hg pull && hg update -C 2013.4.2 | + | |
- | </ | + | |
- | ==== Build the Crazyflie firmware ==== | ||
- | Running the following commands will build the firmware which can be flashed with the wireless bootloader. For updating the Crazyflie use the resulting // | ||
- | < | ||
- | cd ~/ | ||
- | make CLOAD=1 DEBUG=0 | ||
- | </ |