Skip to content

Commit

Permalink
01.09.99
Browse files Browse the repository at this point in the history
  • Loading branch information
ToninoTarsi committed Dec 4, 2012
1 parent 7aa1970 commit 9c48cc5
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -39,3 +39,6 @@ USB library:
• hidapi
• cython-hidapi
• cython


Main program : sudo python swpi.py
33 changes: 33 additions & 0 deletions TX23/makefile
@@ -0,0 +1,33 @@
###########################################################################
# Sint Wind PI
# Copyright 2012 by Tonino Tarsi <tony.tarsi@gmail.com>
#
# Please refer to the LICENSE file for conditions
# Visit http://www.vololiberomontecucco.it
#
##########################################################################

all : readTX23 libTX23.so

clean :
rm *.o readTX23 libTX23.so

readTX23 : bcm2835.o RPi_TX23.o readTX23.o
gcc -o readTX23 bcm2835.o RPi_TX23.o readTX23.o -lrt

libTX23.so : libTX23.o bcm2835.o RPi_TX23.o
gcc --shared -o libTX23.so libTX23.so bcm2835.o RPi_TX23.o libTX23.o -lrt

# The next lines generate the various object files

libTX23.o : libTX23.c RPi_TX23.c RPi_TX23.h bcm2835.h bcm2835.c
gcc -c libTX23.c

bcm2835.o : bcm2835.h bcm2835.c
gcc -c bcm2835.c

RPi_TX23.o : RPi_TX23.c RPi_TX23.h bcm2835.h bcm2835.c
gcc -c RPi_TX23.c

readTX23.o : readTX23.c RPi_TX23.h bcm2835.h bcm2835.c
gcc -c readTX23.c
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
01.09.98
01.09.99
10 changes: 9 additions & 1 deletion intervalmap.py
@@ -1,4 +1,12 @@
# -*- coding: utf-8 -*-
###########################################################################
# Sint Wind PI
# Copyright 2012 by Tonino Tarsi <tony.tarsi@gmail.com>
# Modem comunications based on Slawek Ligus pyhumod-0.03 module
#
# Please refer to the LICENSE file for conditions
# Visit http://www.vololiberomontecucco.it
#
##########################################################################


from bisect import bisect_left, bisect_right
Expand Down
4 changes: 2 additions & 2 deletions swpi.py
Expand Up @@ -336,11 +336,11 @@ def answer_call(modem, message):

# Pressure
if ( globalvars.meteo_data.abs_pressure != None ):
thousands, rem = divmod(globalvars.meteo_data.abs_pressure, 1000)
thousands, rem = divmod(round(globalvars.meteo_data.abs_pressure), 1000)
thousands = int(thousands * 1000)
hundreds, tens = divmod(rem, 100)
hundreds = int(hundreds * 100)
tens = int(round(tens))
tens = int(round(tens))
listOfMessages.append("./audio/silence05s.raw")
listOfMessages.append("./audio/pressure.raw")
if ( thousands != 0):
Expand Down

0 comments on commit 9c48cc5

Please sign in to comment.