https://www.dronecode.org/
やっぱpixhawk買ってみるか
https://www.dronecode.org/
やっぱpixhawk買ってみるか
区切り線設定 <ListView android:id="@+id/ListView1" android:layout_width="match_parent" android:layout_height="match_parent" android:divider="#80000000" android:dividerHeight="1px" > 区切り線なし <ListView android:id="@+id/ListView1" android:layout_width="match_parent" android:layout_height="match_parent" android:divider="@null" > </ListView>
<activity android:name="jp.mknod.app.sn.LoginActivity" android:theme="@android:style/Theme.Holo.NoActionBar" android:screenOrientation="portrait" android:label="@string/app_name" >
画面の回転を固定する
<activity android:screenOrientation="landscape"> <activity android:screenOrientation="portrait">
volley is new network lib.
・apache antをinstallする
brew install ant
または、
https://ant.apache.org/bindownload.cgi
volleyをclone
git clone https://android.googlesource.com/platform/frameworks/volley
・cd volleyで下記をantを実行
android update project -p .
ant jar
[jar] Building jar: /Users/mknod/git/volley/bin/volley.jar
・jarをAndroidのlibsへコピー
UTC現在時刻
Time.now.utc
format = “%Y-%m-%d %H:%M:%S”
from = DateTime.strptime(“2014-10-08 12:51:23”, format)
to = Time.now.utc
Data.where(created_at: from…to)
distribute for packaging
pip for easy installation/removal of packages
virtualenv for nice isolated environments
sudo apt-get install python-dev
curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
sudo pip install virtualenv
【タイムゾーン】sudo pip install pytz
【シリアル】sudo pip install pyserial
【OS X】sudo easy_install -U pyserial
【Linux】apt-get instal python-serial
import serial import pytz def initSerial(): com = serial.Serial( port='/dev/ttyAMA0', baudrate=9600, parity = serial.PARITY_NONE, bytesize = serial.EIGHTBITS, stopbits = serial.STOPBITS_ONE, timeout = None ) return com com = initSerial() f = open('log.txt') line = f.readline() while line: com.write(line) line = f.readline()