![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
main.cpp@56:bf08d9e50ccc, 2015-07-28 (annotated)
- Committer:
- aidanPJG
- Date:
- Tue Jul 28 14:40:26 2015 +0000
- Revision:
- 56:bf08d9e50ccc
- Parent:
- 55:58e9836f5ad1
- Child:
- 59:2cbbd6fea55b
Quite messy but time working more accurately
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ADAMSTRUTT | 17:d9fb4a3780c7 | 1 | #include "mbed.h" |
ADAMSTRUTT | 17:d9fb4a3780c7 | 2 | #include "Calculate.h" |
ADAMSTRUTT | 17:d9fb4a3780c7 | 3 | #include "Distance.h" |
ADAMSTRUTT | 35:085a674c9fdf | 4 | #include "Data.h" |
aidanPJG | 48:e9578f56534a | 5 | #include "UserInput.h" |
aidanPJG | 56:bf08d9e50ccc | 6 | #include "AddDetails.h" |
ADAMSTRUTT | 20:0b2279011691 | 7 | //#include "Counter.h |
ADAMSTRUTT | 35:085a674c9fdf | 8 | |
aidanPJG | 25:bab86a12e9ad | 9 | Serial pc(USBTX, USBRX); // tx, rx |
ADAMSTRUTT | 17:d9fb4a3780c7 | 10 | |
ADAMSTRUTT | 20:0b2279011691 | 11 | int main(void) |
aidanPJG | 7:d6f78ba7c5f7 | 12 | { |
aidanPJG | 55:58e9836f5ad1 | 13 | initialise(3); //used to create the Datalog file should happen once for every bend test |
aidanPJG | 54:9322b1b76e13 | 14 | // calculate(5,3); //testing |
aidanPJG | 54:9322b1b76e13 | 15 | |
aidanPJG | 55:58e9836f5ad1 | 16 | int pins = inputNoOfPins(); //gets number of pins |
aidanPJG | 55:58e9836f5ad1 | 17 | double distance = inputDistance(); //gets the distance between the pins |
aidanPJG | 55:58e9836f5ad1 | 18 | calculate(distance,pins); |
ADAMSTRUTT | 17:d9fb4a3780c7 | 19 | } |