lps-node-firmware-master
所属分类:其他
开发工具:LINUX
文件大小:906KB
下载次数:4
上传日期:2017-09-03 09:12:21
上 传 者:
arixl
说明: crazyflie UWB定位开源程序,可以自己移植
(crazyflie UWB locator)
文件列表:
.gcc-flags.json (529, 2017-03-22)
.travis.yml (180, 2017-03-22)
LICENSE (7361, 2017-03-22)
Makefile (3592, 2017-03-22)
Middlewares (0, 2017-03-22)
Middlewares\ST (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class\CDC (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class\CDC\Inc (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class\CDC\Inc\usbd_cdc.h (5360, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class\CDC\Inc\usbd_cdc_if_template.h (1991, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class\CDC\Src (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class\CDC\Src\usbd_cdc.c (29988, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Class\CDC\Src\usbd_cdc_if_template.c (5689, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Inc (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Inc\usbd_conf_template.h (4165, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Inc\usbd_core.h (5636, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Inc\usbd_ctlreq.h (2680, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Inc\usbd_def.h (11371, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Inc\usbd_ioreq.h (3187, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Src (0, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_conf_template.c (6397, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_core.c (12218, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_ctlreq.c (18104, 2017-03-22)
Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_ioreq.c (5779, 2017-03-22)
Rakefile (867, 2017-03-22)
bin (0, 2017-03-22)
generated-test (0, 2017-03-22)
generated-test\build (0, 2017-03-22)
generated-test\mocks (0, 2017-03-22)
hal (0, 2017-03-22)
... ...
# LPS node firmware [![Build Status](https://api.travis-ci.org/bitcraze/lps-node-firmware.svg)](https://travis-ci.org/bitcraze/lps-node-firmware)
This project contains the source code for the Local positioning System node firmware.
## Dependencies
You'll need to use either the Crazyflie VM, install some ARM toolchain or the Bitcraze docker builder image. If you install a toolchain, the [arm embedded gcc](https://launchpad.net/gcc-arm-embedded) toolchain is recomended.
Frameworks for unit testing are pulled in as git submodules. To get them when cloning
```bash
git clone --recursive https://github.com/bitcraze/lps-node-firmware.git
```
or if you already have a cloned repo and want the submodules
```bash
git submodule init
git submodule update
```
### OS X
```bash
brew tap PX4/homebrew-px4
brew install gcc-arm-none-eabi
```
### Debian/Ubuntu linux
Download, extract and put in your path the compiler from https://launchpad.net/gcc-arm-embedded. For example:
```
mkdir -p ~/opt/
cd ~/opt
wget https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
tar xvf gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
mv gcc-arm-none-eabi-5_4-2016q3 gcc-arm-none-eabi
rm gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
echo "export PATH=\$PATH:\$HOME/opt/gcc-arm-none-eabi/bin" >> ~/.bashrc
```
On ***Bit Linux you also need to install some 32Bit libs:
```
sudo apt-get install libncurses5:i386
```
If all works you will be able to execute ```arm-none-eabi-gcc```:
```
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496]
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
### Arch Linux
```bash
sudo pacman -S community/arm-none-eabi-gcc community/arm-none-eabi-gdb community/arm-none-eabi-newlib
```
### Windows
> `TODO: Please share!`
## Compiling
`make`
or
`docker run --rm -v ${PWD}:/module bitcraze/builder ./tools/build/compile`
or
`tools/do compile`
## Folder description:
> `TODO: Please share!`
# Make targets:
```
all : Shortcut for build
flash : Flash throgh jtag
openocd : Launch OpenOCD
dfu : Flash throgh DFU
```
## Unit testing
We use [Unity](https://github.com/ThrowTheSwitch/unity) and [cmock](https://github.com/ThrowTheSwitch/CMock) for unit testing.
To run all tests
`./tools/do test`
近期下载者:
相关文件:
收藏者: