Index: tags/latest/Version
===================================================================
--- tags/latest/Version (revision 39)
+++ tags/latest/Version (revision 39)
@@ -0,0 +1,1 @@
+flair-bin 0.0.2
Index: tags/latest/models/city_tile.xml
===================================================================
--- tags/latest/models/city_tile.xml (revision 39)
+++ tags/latest/models/city_tile.xml (revision 39)
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
Index: tags/latest/models/indoor_flight_arena.xml
===================================================================
--- tags/latest/models/indoor_flight_arena.xml (revision 39)
+++ tags/latest/models/indoor_flight_arena.xml (revision 39)
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
Index: tags/latest/models/scene.dtd
===================================================================
--- tags/latest/models/scene.dtd (revision 39)
+++ tags/latest/models/scene.dtd (revision 39)
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: tags/latest/tools/scripts/dualshock3.sh
===================================================================
--- tags/latest/tools/scripts/dualshock3.sh (revision 39)
+++ tags/latest/tools/scripts/dualshock3.sh (revision 39)
@@ -0,0 +1,17 @@
+#! /bin/bash
+ARCH_DIR=$(uname -m)
+
+#This script is the only one that calls itself with sudo.
+#As a consequence, only one exception is needed in sudoers (the following 2 lines)
+# Defaults!/opt/flair/flair-bin/tools/scripts/dualshock3.sh setenv
+# uav ALL=(root) /opt/flair/flair-bin/tools/scripts/dualshock3.sh
+
+#we must run as root
+if [ $EUID -ne 0 ]; then
+ exec sudo -E $0 $*
+fi
+
+. ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
+
+export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
+${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/unix/dualshock3 $*
Index: tags/latest/tools/scripts/dualshock3.xml
===================================================================
--- tags/latest/tools/scripts/dualshock3.xml (revision 39)
+++ tags/latest/tools/scripts/dualshock3.xml (revision 39)
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: tags/latest/tools/scripts/dualshock3_bt.sh
===================================================================
--- tags/latest/tools/scripts/dualshock3_bt.sh (revision 39)
+++ tags/latest/tools/scripts/dualshock3_bt.sh (revision 39)
@@ -0,0 +1,11 @@
+#! /bin/bash
+ARCH_DIR=$(uname -m)
+
+# $1 is the drone ip
+if [ "$#" -ne 1 ] ; then
+ echo "Usage: $0 drone_ip_address"
+ exit 1
+fi
+
+${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3.sh -a ${1}:20000 -x ${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3.xml
+
Index: tags/latest/tools/scripts/dualshock3_local_bt.sh
===================================================================
--- tags/latest/tools/scripts/dualshock3_local_bt.sh (revision 39)
+++ tags/latest/tools/scripts/dualshock3_local_bt.sh (revision 39)
@@ -0,0 +1,2 @@
+#! /bin/bash
+${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/scripts/dualshock3_bt.sh 127.0.0.1
Index: tags/latest/tools/scripts/dualshock3_local_usb.sh
===================================================================
--- tags/latest/tools/scripts/dualshock3_local_usb.sh (revision 39)
+++ tags/latest/tools/scripts/dualshock3_local_usb.sh (revision 39)
@@ -0,0 +1,2 @@
+#! /bin/bash
+${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3_usb.sh 127.0.0.1
Index: tags/latest/tools/scripts/dualshock3_usb.sh
===================================================================
--- tags/latest/tools/scripts/dualshock3_usb.sh (revision 39)
+++ tags/latest/tools/scripts/dualshock3_usb.sh (revision 39)
@@ -0,0 +1,11 @@
+#! /bin/bash
+ARCH_DIR=$(uname -m)
+
+# $1 is the drone ip
+if [ "$#" -ne 1 ] ; then
+ echo "Usage: $0 drone_ip_address"
+ exit 1
+fi
+
+$FLAIR_ROOT/flair-bin/tools/scripts/dualshock3.sh -a ${1}:20000 -c usb -t 100 -x ${FLAIR_ROOT}/flair-bin/tools/scripts/dualshock3.xml
+
Index: tags/latest/tools/scripts/launch_flairgcs.sh
===================================================================
--- tags/latest/tools/scripts/launch_flairgcs.sh (revision 39)
+++ tags/latest/tools/scripts/launch_flairgcs.sh (revision 39)
@@ -0,0 +1,27 @@
+#! /bin/sh
+ARCH_DIR=$(uname -m)
+
+#defaults options values
+PORT=9000
+NAME="FlairGCS"
+
+usage() {
+ USAGE="usage: $0 [-n name] [-p port] [-?]|[-h]"
+ echo $USAGE;
+ exit 1
+}
+
+while getopts h?n:p: OPT; do
+ case $OPT in
+ n) NAME=$OPTARG;;
+ p) PORT=$OPTARG;;
+ h|\?) usage;;
+ esac
+done
+shift `expr $OPTIND - 1`
+
+#bail out in case unknown options remain
+[ "$1" = "--" ] && usage
+
+export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
+${FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}/unix/flairgcs -n $NAME -p $PORT
Index: tags/latest/tools/scripts/mavlink.xml
===================================================================
--- tags/latest/tools/scripts/mavlink.xml (revision 39)
+++ tags/latest/tools/scripts/mavlink.xml (revision 39)
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: tags/latest/tools/scripts/mavplanner_flair_launch.sh
===================================================================
--- tags/latest/tools/scripts/mavplanner_flair_launch.sh (revision 39)
+++ tags/latest/tools/scripts/mavplanner_flair_launch.sh (revision 39)
@@ -0,0 +1,12 @@
+#! /bin/bash
+ARCH_DIR=$(uname -m)
+
+. ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
+
+#we must run as root
+if [ $EUID -ne 0 ]; then
+ exec sudo -E $0 $*
+fi
+
+export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
+${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/unix/MavPlanner -x ${FLAIR_ROOT}/flair-bin/tools/scripts/mavlink.xml -m "gcs" -a 127.0.0.1 -p 9000 --outputPort 5555 --outputAddress 127.0.0.1
Index: tags/latest/tools/scripts/mavplanner_forward_launch.sh
===================================================================
--- tags/latest/tools/scripts/mavplanner_forward_launch.sh (revision 39)
+++ tags/latest/tools/scripts/mavplanner_forward_launch.sh (revision 39)
@@ -0,0 +1,12 @@
+#! /bin/bash
+ARCH_DIR=$(uname -m)
+
+. ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
+
+#we must run as root
+if [ $EUID -ne 0 ]; then
+ exec sudo -E $0 $*
+fi
+
+export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
+${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/unix/MavPlanner --inputAddress 127.0.0.1 --inputPort 5036 -x ${FLAIR_ROOT}/flair-bin/tools/scripts/mavlink.xml -m "forward" --outputAddress 127.0.0.1 --outputPort 5037 -a 127.0.0.1 -p 9000
Index: tags/latest/tools/scripts/mavplanner_gcs_launch.sh
===================================================================
--- tags/latest/tools/scripts/mavplanner_gcs_launch.sh (revision 39)
+++ tags/latest/tools/scripts/mavplanner_gcs_launch.sh (revision 39)
@@ -0,0 +1,12 @@
+#! /bin/bash
+ARCH_DIR=$(uname -m)
+
+. ${FLAIR_ROOT}/flair-bin/tools/scripts/ubuntu_cgroup_hack.sh
+
+#we must run as root
+if [ $EUID -ne 0 ]; then
+ exec sudo -E $0 $*
+fi
+
+export LD_LIBRARY_PATH="${OECORE_HOST_SYSROOT}/usr/lib:${OECORE_HOST_SYSROOT}/lib"
+${FLAIR_ROOT}/flair-bin/tools/$ARCH_DIR/unix/MavPlanner -x ${FLAIR_ROOT}/flair-bin/tools/scripts/mavlink.xml -m "gcs" --outputAddress 127.0.0.1 --outputPort 5036 -a 127.0.0.1 -p 9000
Index: tags/latest/tools/scripts/ubuntu_cgroup_hack.sh
===================================================================
--- tags/latest/tools/scripts/ubuntu_cgroup_hack.sh (revision 39)
+++ tags/latest/tools/scripts/ubuntu_cgroup_hack.sh (revision 39)
@@ -0,0 +1,16 @@
+if [ -f /etc/lsb-release ]; then
+ . /etc/lsb-release
+fi
+
+if [ _$DISTRIB_ID == _Ubuntu ]; then
+ #we must run as root
+ if [ $EUID -ne 0 ]; then
+ exec sudo -E $0 $*
+ fi
+
+ #we must run in root cgroup to escape possible restrictions on scheduling
+ if [ -d /sys/fs/cgroup/cpu ]; then
+ echo $$ > /sys/fs/cgroup/cpu/tasks
+ fi
+fi
+