00001 00002 #ifndef PLATFORM_COMMUNICATION_H 00003 #define PLATFORM_COMMUNICATION_H 00004 00005 #include "coridium.h" 00006 #include "cor_hwlib.h" 00007 #include "cor_wrflash.h" 00008 00009 #include "string.h" 00010 #include "printf.h" 00011 #include <math.h> 00012 00013 //platform controller communication functions 00014 00015 int initializePlatformCommunication(int serial_in_pin, int data_ready_pin, int ack_pin); 00016 00017 int checkForPlatformData(); 00018 short getSteeringRecommendation(); 00019 short getThrottleRecommendation(); 00020 short getRadioControlMode(); 00021 short getAutoAvoidObstacle(); 00022 00023 #endif