]> oss.titaniummirror.com Git - tinyos-2.x.git/log
tinyos-2.x.git
14 years agoUpdate integration branch for release/2.1.0-4. debian/2.1.0-4-1tmi
R. Steve McKown [Thu, 22 Apr 2010 21:56:30 +0000 (15:56 -0600)]
Update integration branch for release/2.1.0-4.

14 years agoMerge branch 'release/2.1.0' into debian/2.1.0
R. Steve McKown [Thu, 22 Apr 2010 21:49:32 +0000 (15:49 -0600)]
Merge branch 'release/2.1.0' into debian/2.1.0

14 years agoSubstitue for newest getTime32() by Miklos.
R. Steve McKown [Sat, 13 Feb 2010 01:19:10 +0000 (18:19 -0700)]
Substitue for newest getTime32() by Miklos.

14 years agoUpstream commits to tos/chips/cc2420, Aug 7 2008 thru Jul 16 2009, except one.
R. Steve McKown [Fri, 13 Nov 2009 23:47:49 +0000 (16:47 -0700)]
Upstream commits to tos/chips/cc2420, Aug 7 2008 thru Jul 16 2009, except one.

commit df004818be0944a5459b2d23dd4b49c55b716448
    kusy <kusy> Thu Aug 7 00:06:53 2008 +0000
    Previously reported timestamping bug was only fixed partially: *timesync...

NOT COMMITTED f8120ec47efebf578a6edf99882d009ea6dedcd1
    kusy <kusy> Wed Aug 13 07:37:05 2008 +0000
    Fixing T32khz to TMilli conversion - coeficient 32 needs to be...

commit 42b450d2e6d5eda17245d38f4d2bceb6b60e5400
    rincon <rincon> Mon Aug 18 22:04:15 2008 +0000
    Added a length check to make sure we don't try to send a packet that is...

commit 62d558a6db9cf823c7926fc74ed5610a0dcbad23
    rincon <rincon> Fri Sep 5 20:39:00 2008 +0000
    added more descriptive comments about the header

commit 72c8a4f1a2b4f331aeedc6bfd5262253ce8d6d04
    janhauer <janhauer> Wed Nov 26 10:13:31 2008 +0000
    Added an interface for accessing the RXFIFO in a non-split phase...

commit 10c02f9ece9b5ee20aa93c877d70fa6689ef7a7d
    razvanm <razvanm> Mon Dec 1 19:56:53 2008 +0000
    Remove a redundant definition.

commit 979965da13886883fe7399d60ff4d025f53bfd4c
    razvanm <razvanm> Mon Dec 1 23:51:38 2008 +0000
    Add a comment about the polarity of FIFOP.

commit 98d4eae39755d369b001971ec9c5f1dd741bc82d
    andreaskoepke <andreaskoepke> Wed Dec 17 17:42:22 2008 +0000
    avoid integer overflow

commit 31bef23ef3377514af595000d2fa2cce07bd4531
    kusy <kusy> Fri Feb 6 06:38:49 2009 +0000
    committing new timestamping code

commit 9be3c9111199378d00acd0d946a0c1772947165a
    kusy <kusy> Mon Mar 2 07:02:32 2009 +0000
    timestamping patch: improved test to fall-through on SFD

commit cd6c99ffa038524d2532860acb79e3ba52540ad7
    kusy <kusy> Thu Jul 16 06:41:41 2009 +0000
    Using AMSenderC infrastructure to fix CTP+FTSP bug

commit fbde8e8b590651b32583d9250bb4921d5b6ab1a3
    kusy <kusy> Thu Jul 16 06:46:07 2009 +0000
    thomas's FTSP patch

14 years agoPatch incorporate changes on CVS head through 8/23/09 for tos/lib/ftsp only.
R. Steve McKown [Tue, 25 Aug 2009 03:13:21 +0000 (21:13 -0600)]
Patch incorporate changes on CVS head through 8/23/09 for tos/lib/ftsp only.

14 years agoFix startup in SoftwareInit.init overwriting changes to StateC's.
R. Steve McKown [Mon, 19 Apr 2010 22:13:15 +0000 (16:13 -0600)]
Fix startup in SoftwareInit.init overwriting changes to StateC's.

If a component wires its Init.init() via SoftwareInit and ncc calls
StateImplP.Init.init() after the component's Init.init(), any change to its
StateC, such as call State.forceState(), is undone.  The easy fix is to remove
the extra initiation of state[] in StateImplP.Init.init(), since state[] is a
static and is guaranteed to have members with value zero (S_IDLE).

14 years agoUSCI fixes.
R. Steve McKown [Thu, 8 Apr 2010 01:16:46 +0000 (19:16 -0600)]
USCI fixes.

* Watch out for sendData() clobbering TXBUF.
* May solve a loss of UART TX chars.
* USCI UartStream.send() gains nothing by immediately sending the 1st byte.
* m_sobuf cannot be null in Interrupts.tx, so remove the check.

14 years agoLet UartByte.send() interleave with any in-progress UartStream.send().
R. Steve McKown [Thu, 8 Apr 2010 13:46:32 +0000 (07:46 -0600)]
Let UartByte.send() interleave with any in-progress UartStream.send().

14 years agoSome comments about the UART ISRs.
R. Steve McKown [Thu, 8 Apr 2010 00:46:48 +0000 (18:46 -0600)]
Some comments about the UART ISRs.

14 years agoRemove redundant atomic blocks.
R. Steve McKown [Thu, 8 Apr 2010 00:17:22 +0000 (18:17 -0600)]
Remove redundant atomic blocks.

14 years agoFix USCI hanging caused by clearing the TXIFG bit.
R. Steve McKown [Thu, 8 Apr 2010 00:12:00 +0000 (18:12 -0600)]
Fix USCI hanging caused by clearing the TXIFG bit.

Also removed the commands that allow set/clear of TXIFG, as there is never a
valid reason to do so.

14 years agoImprove interrupt handling for USCI.
R. Steve McKown [Thu, 8 Apr 2010 00:02:56 +0000 (18:02 -0600)]
Improve interrupt handling for USCI.

Because some interrupts share an interrupt vector, we use the relevant interrupt
enable bit to decide if any user is interested in the interrupt.  If not, that
interrupt is skipped so that another interrupt in the if/then/elseif chain can
be taken.  We also defensively try to prevent I2C interrupts from being a
problem if not used, although no I2C code using these interrupts has yet been
written.

14 years agoFix last UartSend.send() lost when immediately followed by UartStream.send().
R. Steve McKown [Wed, 7 Apr 2010 19:54:02 +0000 (13:54 -0600)]
Fix last UartSend.send() lost when immediately followed by UartStream.send().

14 years agoFix up a duplicate error message in tos-storage-stm25p.
R. Steve McKown [Tue, 13 Apr 2010 19:20:44 +0000 (13:20 -0600)]
Fix up a duplicate error message in tos-storage-stm25p.

14 years agoMake RS-232 signalling docs in tos-bsl easier to understand.
R. Steve McKown [Mon, 12 Apr 2010 23:04:37 +0000 (17:04 -0600)]
Make RS-232 signalling docs in tos-bsl easier to understand.

14 years agoTeach tos-storage-stm25p to derive NUM_SECTORS and SECTOR_SIZE.
R. Steve McKown [Thu, 8 Apr 2010 19:50:41 +0000 (13:50 -0600)]
Teach tos-storage-stm25p to derive NUM_SECTORS and SECTOR_SIZE.

The stm25p driver is suitable for different sizes of flash parts, such as the
commonly used 8Mb M25P80 and the less commonly used 1Mb M25P10A.  The driver
defines the flash configuration in Stm25p.h.  By having tos-storage-stm25p walk
the @includes for the platform, as found in the .platform file, each platform
can ensure that a Stm25p.h with correct content for its flash part is found
for use by the driver and this script.

14 years agoOlimex P169 platform.
R. Steve McKown [Thu, 4 Mar 2010 20:37:26 +0000 (13:37 -0700)]
Olimex P169 platform.

14 years agoRemove unnecessary wiring for tmicore and derivative platforms.
R. Steve McKown [Thu, 4 Mar 2010 23:36:58 +0000 (16:36 -0700)]
Remove unnecessary wiring for tmicore and derivative platforms.

14 years agoUse platform variable name to build make dependency.
R. Steve McKown [Thu, 4 Mar 2010 23:16:48 +0000 (16:16 -0700)]
Use platform variable name to build make dependency.

Minimize the patch to upstream official, so don't make the same modification to
target files for platforms we didn't create.

14 years agoUSCI using uint8_t for len instead of required uint16_t.
R. Steve McKown [Thu, 25 Feb 2010 21:00:16 +0000 (14:00 -0700)]
USCI using uint8_t for len instead of required uint16_t.

14 years agoFix typo in msp430 BusyWait32khzC.nc.
R. Steve McKown [Wed, 3 Feb 2010 01:12:52 +0000 (18:12 -0700)]
Fix typo in msp430 BusyWait32khzC.nc.

14 years agoMake USCI interrupt comments more clear and accurate.
R. Steve McKown [Fri, 15 Jan 2010 15:42:58 +0000 (08:42 -0700)]
Make USCI interrupt comments more clear and accurate.

14 years agoCollapse two sections that are exactly the same.
R. Steve McKown [Fri, 15 Jan 2010 15:32:26 +0000 (08:32 -0700)]
Collapse two sections that are exactly the same.

14 years agoMerge commit 'bc54b6cd239fe6f2a54b2fe2a1739ab58bde19e0' into debian/2.1.0 debian/2.1.0-3-2tmi
R. Steve McKown [Tue, 8 Dec 2009 21:58:32 +0000 (14:58 -0700)]
Merge commit 'bc54b6cd239fe6f2a54b2fe2a1739ab58bde19e0' into debian/2.1.0

Conflicts:
debian/changelog

14 years agoChange the maintainer and sign the package.
R. Steve McKown [Tue, 8 Dec 2009 21:26:22 +0000 (14:26 -0700)]
Change the maintainer and sign the package.

14 years agoUpdate changelog and .gbp.conf
R. Steve McKown [Mon, 7 Dec 2009 19:21:32 +0000 (12:21 -0700)]
Update changelog and .gbp.conf

14 years agoThe necessary mods to the source code necessary to build using our debian setup.
R. Steve McKown [Mon, 7 Dec 2009 19:25:21 +0000 (12:25 -0700)]
The necessary mods to the source code necessary to build using our debian setup.

14 years agoUpdate integration branch for release/2.1.0-3 debian/2.1.0-3-1tinyos1
R. Steve McKown [Mon, 7 Dec 2009 18:07:11 +0000 (11:07 -0700)]
Update integration branch for release/2.1.0-3

14 years agoMerge commit '3814f9febb4315c71e12ff32751afe5f73ada996' into debian/2.1.0
R. Steve McKown [Mon, 7 Dec 2009 18:03:48 +0000 (11:03 -0700)]
Merge commit '3814f9febb4315c71e12ff32751afe5f73ada996' into debian/2.1.0

14 years agoMerge branch 'release/2.1.0' into debian/2.1.0 (at 2.1.0-3)
R. Steve McKown [Mon, 7 Dec 2009 18:03:18 +0000 (11:03 -0700)]
Merge branch 'release/2.1.0' into debian/2.1.0 (at 2.1.0-3)

14 years agoSeparate filters in tools/release/tinyos.files for use by debian packaging too. release/2.1.0-3
R. Steve McKown [Mon, 7 Dec 2009 17:29:57 +0000 (10:29 -0700)]
Separate filters in tools/release/tinyos.files for use by debian packaging too.

14 years agoUse pbuilder to build the package. debian/2.1.0-1tinyos1
R. Steve McKown [Mon, 7 Dec 2009 15:18:57 +0000 (08:18 -0700)]
Use pbuilder to build the package.

14 years agoApparently tinyos does not require emacs to build.
R. Steve McKown [Mon, 7 Dec 2009 14:59:49 +0000 (07:59 -0700)]
Apparently tinyos does not require emacs to build.

For whatever reason, I cannot replicate the prior behavior where some emacs
based script was being ran.

14 years agoAdd git configuration files.
R. Steve McKown [Fri, 4 Dec 2009 22:35:41 +0000 (15:35 -0700)]
Add git configuration files.

* .gbp.conf from debian/gbp.conf.template controls git-pbuilder
* .gitignore to not show debian/control which should never be in the repo

14 years agodebian/control should not be in the repo; only debian/control.in.
R. Steve McKown [Fri, 4 Dec 2009 22:35:05 +0000 (15:35 -0700)]
debian/control should not be in the repo; only debian/control.in.

14 years agoFix debian/master changelog to fit our needs
R. Steve McKown [Fri, 4 Dec 2009 22:24:18 +0000 (15:24 -0700)]
Fix debian/master changelog to fit our needs

14 years agoThe necessary mods to the source code necessary to build using our debian setup.
R. Steve McKown [Fri, 4 Dec 2009 22:33:01 +0000 (15:33 -0700)]
The necessary mods to the source code necessary to build using our debian setup.

14 years agoAdd tinyos.sh, a utility for changing the active tree (TOSROOT).
R. Steve McKown [Thu, 3 Dec 2009 20:45:13 +0000 (13:45 -0700)]
Add tinyos.sh, a utility for changing the active tree (TOSROOT).

14 years agoUpdate tools/release/tinyos.files so it also works with debian/git builds.
R. Steve McKown [Mon, 7 Dec 2009 15:50:36 +0000 (08:50 -0700)]
Update tools/release/tinyos.files so it also works with debian/git builds.

14 years agoRemove unnecessary execute permission on text files.
R. Steve McKown [Thu, 3 Dec 2009 19:14:02 +0000 (12:14 -0700)]
Remove unnecessary execute permission on text files.

14 years agoFormally indicate support/sdk/c/sf/bootstrap is a shell script.
R. Steve McKown [Thu, 3 Dec 2009 19:13:31 +0000 (12:13 -0700)]
Formally indicate support/sdk/c/sf/bootstrap is a shell script.

14 years agoWe don't want README.mkd in the tree right now, though.
R. Steve McKown [Mon, 7 Dec 2009 15:39:42 +0000 (08:39 -0700)]
We don't want README.mkd in the tree right now, though.

14 years agoApparently tinyos does not require emacs to build.
R. Steve McKown [Mon, 7 Dec 2009 14:59:49 +0000 (07:59 -0700)]
Apparently tinyos does not require emacs to build.

For whatever reason, I cannot replicate the prior behavior where some emacs
based script was being ran.

14 years agodebian/control should not be in the repo; only debian/control.in.
R. Steve McKown [Fri, 4 Dec 2009 22:35:05 +0000 (15:35 -0700)]
debian/control should not be in the repo; only debian/control.in.

14 years agoFix debian/master changelog to fit our needs
R. Steve McKown [Fri, 4 Dec 2009 22:24:18 +0000 (15:24 -0700)]
Fix debian/master changelog to fit our needs

14 years agoAdd 'debian/' from commit 'c0feb0119fe9f9f2af21a5f2fd08c8c1c60650d9'
R. Steve McKown [Fri, 4 Dec 2009 22:11:39 +0000 (15:11 -0700)]
Add 'debian/' from commit 'c0feb0119fe9f9f2af21a5f2fd08c8c1c60650d9'

git-subtree-dir: debian
git-subtree-mainline: 520956b2e4d6d28e6a684f81b3819492770e1d84
git-subtree-split: c0feb0119fe9f9f2af21a5f2fd08c8c1c60650d9

14 years agoAdd gbp.conf.template, a template for .gbp.conf.
R. Steve McKown [Fri, 4 Dec 2009 22:09:50 +0000 (15:09 -0700)]
Add gbp.conf.template, a template for .gbp.conf.

14 years agoOur first official changelog may look something like this.
R. Steve McKown [Fri, 4 Dec 2009 21:10:28 +0000 (14:10 -0700)]
Our first official changelog may look something like this.

14 years agoUpdate the debian build for smarter tinyos-source package handling.
R. Steve McKown [Fri, 4 Dec 2009 21:09:33 +0000 (14:09 -0700)]
Update the debian build for smarter tinyos-source package handling.

14 years agoWorking on a solution for allowing multiple tinyos-source packages to be installed...
R. Steve McKown [Fri, 4 Dec 2009 00:17:25 +0000 (17:17 -0700)]
Working on a solution for allowing multiple tinyos-source packages to be installed at the same time, but ensuring that at least one is installed.

14 years agoRemove use of dpatch, since all modifications are in the source branch.
R. Steve McKown [Thu, 3 Dec 2009 21:31:58 +0000 (14:31 -0700)]
Remove use of dpatch, since all modifications are in the source branch.

14 years agoCompress changelog for tinyos-source to remove lintian warning.
R. Steve McKown [Thu, 3 Dec 2009 21:02:34 +0000 (14:02 -0700)]
Compress changelog for tinyos-source to remove lintian warning.

14 years agoNo longer need dpatch patches.
R. Steve McKown [Thu, 3 Dec 2009 20:56:51 +0000 (13:56 -0700)]
No longer need dpatch patches.

14 years agoCorrectly pull version numbers from debian/changelog containing dashes.
R. Steve McKown [Thu, 3 Dec 2009 20:00:13 +0000 (13:00 -0700)]
Correctly pull version numbers from debian/changelog containing dashes.

14 years agoAdd the debian changelog to the tinyos-source package as well as tinyos-tools.
R. Steve McKown [Thu, 3 Dec 2009 19:45:41 +0000 (12:45 -0700)]
Add the debian changelog to the tinyos-source package as well as tinyos-tools.

14 years agoClear up lintian warnings about changelogs missing where they aren't needed.
R. Steve McKown [Thu, 3 Dec 2009 19:45:19 +0000 (12:45 -0700)]
Clear up lintian warnings about changelogs missing where they aren't needed.

14 years agoRemove full stop (period) from Description fields to clear lintian warning.
R. Steve McKown [Thu, 3 Dec 2009 19:44:20 +0000 (12:44 -0700)]
Remove full stop (period) from Description fields to clear lintian warning.

14 years agoChange copyright a bit to pass lintian tests.
R. Steve McKown [Thu, 3 Dec 2009 19:43:55 +0000 (12:43 -0700)]
Change copyright a bit to pass lintian tests.

14 years agoBelieve it or not, but building tinyos tools requires emacs.
R. Steve McKown [Thu, 3 Dec 2009 19:25:45 +0000 (12:25 -0700)]
Believe it or not, but building tinyos tools requires emacs.

14 years agoFix a lintian warning re: Description fields.
R. Steve McKown [Thu, 3 Dec 2009 19:25:14 +0000 (12:25 -0700)]
Fix a lintian warning re: Description fields.

14 years agoUpdate debian rules.
R. Steve McKown [Thu, 3 Dec 2009 19:16:10 +0000 (12:16 -0700)]
Update debian rules.

* Clean up builddir
* Use dtmp variable to streamline instructions
* Add lintian overrides files
* Add copyright file to all packages
* Add README.Debian file to all packages

14 years agoFix bad e-mail address in debian/changelog.
R. Steve McKown [Thu, 3 Dec 2009 19:13:02 +0000 (12:13 -0700)]
Fix bad e-mail address in debian/changelog.

14 years agoA possible README.mkd for when this repo is made public.
R. Steve McKown [Thu, 3 Dec 2009 02:55:59 +0000 (19:55 -0700)]
A possible README.mkd for when this repo is made public.

This file would work with github, for example.

14 years agoRemove unneeded references to oww dirs in tmirws .platform release/2.1.0-2
R. Steve McKown [Thu, 3 Dec 2009 00:39:34 +0000 (17:39 -0700)]
Remove unneeded references to oww dirs in tmirws .platform

14 years agoRemove sensors code from tmirws platform.
R. Steve McKown [Wed, 2 Dec 2009 23:37:00 +0000 (16:37 -0700)]
Remove sensors code from tmirws platform.

The sensors code is not stable enough for inclusion into core tinyos, nor is
there yet a clean separation between platform code and application code.  The
sensors code removed here was imported with its history into the RWS
application repository.

14 years agoMove NoMsp430GpioC out of tos/chips/msp430 and into tos/platforms/tmicore
R. Steve McKown [Wed, 2 Dec 2009 22:35:51 +0000 (15:35 -0700)]
Move NoMsp430GpioC out of tos/chips/msp430 and into tos/platforms/tmicore

While this component is very generic for msp430, there is no compelling case
yet to argue for its inclusion into core tinyos.

14 years agoUse AverageAngleC in AeroVaneReadC.
smckown [Mon, 9 Nov 2009 19:31:01 +0000 (19:31 +0000)]
Use AverageAngleC in AeroVaneReadC.

14 years agoAddress possible dead zone discontinuities when reading in WindVaneReadP.
smckown [Mon, 9 Nov 2009 19:31:00 +0000 (19:31 +0000)]
Address possible dead zone discontinuities when reading in WindVaneReadP.

14 years agoTeach aerovector_t that it can be null, via a special value in its dir member.
smckown [Mon, 9 Nov 2009 19:30:59 +0000 (19:30 +0000)]
Teach aerovector_t that it can be null, via a special value in its dir member.

14 years agoRedo Average interface.
smckown [Mon, 9 Nov 2009 19:30:58 +0000 (19:30 +0000)]
Redo Average interface.

There is no point in having the averagers pre-know their number of samples.
The user should know this information.  Therefore we have a more flexible
solution and avoid a signal to return the averate to the user when that user is
very likely to want to call a command instead.

14 years agoClean up comments in AeroVane.h to better explain aerovector fields.
smckown [Mon, 9 Nov 2009 19:30:57 +0000 (19:30 +0000)]
Clean up comments in AeroVane.h to better explain aerovector fields.

14 years agoAdd the averaging components and their interface.
smckown [Mon, 9 Nov 2009 19:30:56 +0000 (19:30 +0000)]
Add the averaging components and their interface.

14 years agoAnemometerReadC changes
smckown [Mon, 9 Nov 2009 19:30:55 +0000 (19:30 +0000)]
AnemometerReadC changes

* Replace interface AsyncGet with Get.
* Change interface Count name to Revolutions.

14 years agoUpdates to WindVaneReadC
smckown [Mon, 9 Nov 2009 19:30:54 +0000 (19:30 +0000)]
Updates to WindVaneReadC

* Use AverageAngleC to average readings
* Adapt to latest changes to MultiSampleC

14 years agoChanges to MultiSampleC
smckown [Mon, 9 Nov 2009 19:30:53 +0000 (19:30 +0000)]
Changes to MultiSampleC

* Returns the array of samples rather than their sum.
* Hard coded to work with uint16_t samples.

14 years agoEnhancements to AeroVaneReadC.
smckown [Mon, 9 Nov 2009 19:30:52 +0000 (19:30 +0000)]
Enhancements to AeroVaneReadC.

* Anemometer is read immediately after the Timer fires to reduce jitter.
* Count interface is renamed Revolutions to be more meaningful.
* m_count is now uint8_t to reflect a more reasonable real life range.
* Direction data is returned no as degrees but as a 10-bit unsigned value.
* m_sum accumulates the correct, updated angle values.
* Rounding is done properly when m_sum is negative.

14 years agoRemove references to Alarm; use of a Timer will be fine.
smckown [Mon, 9 Nov 2009 19:30:51 +0000 (19:30 +0000)]
Remove references to Alarm; use of a Timer will be fine.

14 years agoWhen using a Timer in AeroVaneReadP, we don't need to post a task to read vane.
smckown [Mon, 9 Nov 2009 19:30:50 +0000 (19:30 +0000)]
When using a Timer in AeroVaneReadP, we don't need to post a task to read vane.

14 years agoMay or may not use these
smckown [Sat, 7 Nov 2009 23:59:04 +0000 (23:59 +0000)]
May or may not use these

14 years agoAdd in the formula to convert the returned speed to mph. Temporary.
smckown [Sat, 7 Nov 2009 23:59:00 +0000 (23:59 +0000)]
Add in the formula to convert the returned speed to mph.  Temporary.

14 years agoAdd AeroVane infrastructure to support physical/reading of the sensor.
smckown [Sat, 7 Nov 2009 23:58:55 +0000 (23:58 +0000)]
Add AeroVane infrastructure to support physical/reading of the sensor.

AeroVaneReadC implements a timer every 28800 ticks of the 32KHz clock (or 900
binary ms).  At each timer event it reads the wind vane via WindVaneReadC.
On every 4th read it reads the anemometer via AnemometerReadC, calculates the
average vane position over the last 4 reads (it's been summing all along),
and uses Notify.notify() to send out the aerovector structure.  This means
that the user should get an AeroVane vector (reading) every 3.516 seconds, where
both the direction and the speed have been averaged over 4 reads during that
period.

14 years agoFix an incorrect comment regarding the dead band check endpoint.
smckown [Fri, 6 Nov 2009 00:53:44 +0000 (00:53 +0000)]
Fix an incorrect comment regarding the dead band check endpoint.

14 years agoChagne the wind vane compass accumulator from an uint16_t to an uint8_t array.
smckown [Wed, 4 Nov 2009 19:17:59 +0000 (19:17 +0000)]
Chagne the wind vane compass accumulator from an uint16_t to an uint8_t array.

We are suposed to accumulate wind readings every 2 minutes, which is only 120
points at one per second.

14 years agoFix the comments in WindVaneC, etc. There is no longer a power of 2 requirement.
smckown [Wed, 4 Nov 2009 19:17:58 +0000 (19:17 +0000)]
Fix the comments in WindVaneC, etc.  There is no longer a power of 2 requirement.

14 years agoWiden the dead band detect range again.
smckown [Wed, 4 Nov 2009 19:17:57 +0000 (19:17 +0000)]
Widen the dead band detect range again.

We leaked a false direction of 210 degrees (36 sectors) when in the dead band.

14 years agoReplace a cardinal value with its proper template argument in WindVaneP.
smckown [Wed, 4 Nov 2009 19:17:56 +0000 (19:17 +0000)]
Replace a cardinal value with its proper template argument in WindVaneP.

The wind vane infrastructure works with 128 sectors, the max, which offers
approximately a 3 degree resolution.  This comes at the cost of an additional
129 bytes of RAM over using 32 sectors.

14 years agoUpdate WindVaneC to use newer underlying code.
smckown [Wed, 4 Nov 2009 03:55:06 +0000 (03:55 +0000)]
Update WindVaneC to use newer underlying code.

Wind directions are returned as sectors; use the sector count available by
call Sectors.get() to convert to degrees.  Doing this saves some memory.

14 years agoWindVaneReadC gives instantaneous compass heading reading from the wind vane.
smckown [Wed, 4 Nov 2009 03:55:05 +0000 (03:55 +0000)]
WindVaneReadC gives instantaneous compass heading reading from the wind vane.

14 years agoUpdate HalWindVaneC so that it adds dead zone check support and pin init.
smckown [Wed, 4 Nov 2009 03:55:04 +0000 (03:55 +0000)]
Update HalWindVaneC so that it adds dead zone check support and pin init.

14 years agoClean up the ADC configuration for the wind vane.
smckown [Wed, 4 Nov 2009 03:55:03 +0000 (03:55 +0000)]
Clean up the ADC configuration for the wind vane.

14 years agoConvenience components that multi-sample an ADC pin for oversampling.
smckown [Wed, 4 Nov 2009 03:55:02 +0000 (03:55 +0000)]
Convenience components that multi-sample an ADC pin for oversampling.

14 years agoCorrect mph calculations in AnemometerP.nc for Davis aerovane.
smckown [Wed, 4 Nov 2009 03:55:01 +0000 (03:55 +0000)]
Correct mph calculations in AnemometerP.nc for Davis aerovane.

14 years agoFix IO config problems for tmirws board wind direction peripheral.
smckown [Wed, 4 Nov 2009 03:55:00 +0000 (03:55 +0000)]
Fix IO config problems for tmirws board wind direction peripheral.

14 years agoEnsure that uC input pin P1.2_CP_RTS is valid when the CP2103 is off.
smckown [Mon, 2 Nov 2009 20:43:24 +0000 (20:43 +0000)]
Ensure that uC input pin P1.2_CP_RTS is valid when the CP2103 is off.

We accomplish this by enabling an internal pull-down on P1.2 of the MSP430.
It would be better to enable a pull-up, but then we are sending a voltage to
the CP2103 when it is off, which may cause a latch-up problem.  The pull-down
isn't terrible, since it represents the condition whereby the USB host is ready
to receive data from the RWS.  When the USB is connected, this is likely to be
the most common condition.

14 years agoWork on wind sensor move to Davis Instruments.
smckown [Mon, 2 Nov 2009 20:43:23 +0000 (20:43 +0000)]
Work on wind sensor move to Davis Instruments.

14 years agoWork in process to support Davis instruments aerovane (wind vane).
smckown [Mon, 2 Nov 2009 20:43:22 +0000 (20:43 +0000)]
Work in process to support Davis instruments aerovane (wind vane).

14 years agoIgnore files created when running tos-install-jni.
smckown [Mon, 2 Nov 2009 20:43:21 +0000 (20:43 +0000)]
Ignore files created when running tos-install-jni.

14 years agoSync tmicore MotePlatformC with that of tmirws, and do some comment formatting.
smckown [Mon, 2 Nov 2009 20:43:20 +0000 (20:43 +0000)]
Sync tmicore MotePlatformC with that of tmirws, and do some comment formatting.

14 years agotmirws sets outputs going to cp2103 to low (zero) by default.
smckown [Wed, 5 Aug 2009 02:57:10 +0000 (02:57 +0000)]
tmirws sets outputs going to cp2103 to low (zero) by default.

If any of these drive a high value toward the cp2103, the cp2103 is not
connected to USB power, and VIO is disconnected from Vuc, then funky things
happen that can cause GPIO_3, tied to !UC_RST, to sink current and cause the
uC to go into reset.  Similar bad behavior can happen with !USB_SUSPEND.

14 years agoReorganize scp1000 driver code.
smckown [Wed, 5 Aug 2009 02:57:08 +0000 (02:57 +0000)]
Reorganize scp1000 driver code.

The Scp1000P module now only uses GeneralIO and is not tied to anything msp430
specific.  The msp430 specific bits are in the platform dependent file
Scp1000PinsP.