Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ESDC2014 by
Diff: port.h
- Revision:
- 5:098e6a44bd94
- Parent:
- 4:a377ecb9364f
--- a/port.h Fri Jul 04 13:05:15 2014 +0000
+++ b/port.h Fri Jul 04 16:08:29 2014 +0000
@@ -27,7 +27,6 @@
**********************************************************/
#include "mbed.h"
#include "define.h"
-#include "compass.h"
#ifndef _PORT_H
#define _PORT_H
@@ -51,9 +50,9 @@
Buzzer buzzer(&buzzer_pin);
-Compass compass(CompassData);
+MySerial CompassData(p9, p10); ////uart port between compass and Mbed
-Communication com(&DEBUG, &IntelToMbed, &MbedToArduino, &compass);
+Communication com(&DEBUG, &IntelToMbed, &MbedToArduino, &CompassData);
Lifter lifter(&lifter_enable, &lifter_pwmUp, &lifter_pwmDown, &lifter_encoder_A, &lifter_encoder_B);
Camera_platform camera_platform(&camera_platform_pwmRoll, &camera_platform_pwmPitch, &camera_platform_pwmYaw);
@@ -75,7 +74,7 @@
{
//__disable_irq();
uint8_t _x = CompassData.getc();
- compass.putToBuffer(_x);
+ com.putToBuffer(_x,2);
//__enable_irq();
}
