1.6
Development Environment and Tools
1
INTRODUCTION
associated data processing scripts. The
extra
folder holds other documentation
material such as project logos and fonts.
extra
: This folder contains other associated programs for the project. Since
the
software
folder is dedicated exclusively to software that is intended to fly
the quadrotor other programs need to be stored in the
extra
folder. This folder
stores the Anzhelka Terminal files and the Thrust/Torque test stand files for
example.
1.6.2
Development Cycle
Figure 3: A screenshot of an open Spin file in Gedit showing syntax highlighting.
To facilitate the development cycle a simple compilation script was devel-
oped. A template form of this script can be found in
/sof tware/spin/tool/bst
−
template.sh
. This script will compile the Spin pro-
gram, and if no errors are found it will attempt to download to the Propeller.
If successful it will open picocom (terminal program) on the USB port to lis-
ten for data. Using this script while programming dramatically decreases the
write-compile-test debug cycle.
All code was written in Gedit. Gedit is a simple text editor with a few
features built in, including syntax highlighting. For most of the languages in
this project, Gedit has provided suitable syntax highlighting. Propeller Spin,
however, is not available by default. Syntax highlighting was accomplished by
writing a language definition file (
/sof tware/spin/tool/spin.lang
) and placing
10