Permalink
Browse files

Flight computer is transmitting correct short report time

  • Loading branch information...
1 parent 1a890fd commit 9912647f78aaa70d5e3a7f5d3b25963bf93ec71c @Zuph Zuph committed Apr 9, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 WSB Flight Computer.depend
  2. +3 −3 main.c
@@ -649,7 +649,7 @@
"../dataStructures.h"
"openlog.h"
-1301885699 source:/home/bradluyster/Dev/git/LVL1-Transatlantic-Balloon/Software/fcpu/WSB Flight Computer/main.c
+1302389070 source:/home/bradluyster/Dev/git/LVL1-Transatlantic-Balloon/Software/fcpu/WSB Flight Computer/main.c
<stdio.h>
<stdint.h>
<avr/io.h>
View
6 main.c
@@ -1211,7 +1211,7 @@ void collectData(uint32_t time)
i2cSendByte(0x10);
i2cWaitForComplete();
i2cSendStop();
- _delay_us(5);
+ _delay_ms(5);
i2cSendStart();
i2cWaitForComplete();
@@ -1468,8 +1468,8 @@ void transmitShortReport(uint32_t time)
packet2[4] |= _BV(5);
}
- lprintf("N: %lu\n", rightNow);
-
+ //lprintf("N: %lu\n", rightNow);
+ //lprintf("T1: %u T2: %u\n", ((packet1[4] & 0xF) <<8) + packet1[5], ((packet2[4] & 0xF)<<8) + packet2[5]);
reportCounterL++;
reportCounterH++;

0 comments on commit 9912647

Please sign in to comment.