LP Long Distance IR Vision Robot
Dependencies: max77650_charger_sample BufferedSerial SX1276GenericLib Adafruit-MotorShield NEO-6m-GPS MAX17055_EZconfig Adafruit_GFX USBDeviceHT Adafruit-PWM-Servo-Driver
Diff: main.cpp
- Revision:
- 36:09e8b51fc91d
- Parent:
- 35:bae9b236070b
- Child:
- 37:f0fcc0341654
- Child:
- 39:df7c8bd2212e
--- a/main.cpp Tue Jul 31 21:16:10 2018 +0000 +++ b/main.cpp Tue Jul 31 22:39:49 2018 +0000 @@ -12,8 +12,6 @@ #include "main.h" #include "global_buffers.h" #include "GridEye.h" -#include "mbed.h" -#include <string> //#define DEBUG_GRID_EYE #define RASPBERRY_PI @@ -445,7 +443,7 @@ #elif defined(TARGET_MAX32620FTHR) // Slave Device: LoRa Controlled Robot // Aquire raw data about 8x8 frame from the grid eye sensor in this function call gridEye.getRaw8x8FrameData(curr_raw_frame_to_master); - wait_ms( 20 ); +// wait_ms( 10 ); #if defined(RASPBERRY_PI) if( memcmp(prev_raw_frame_to_master, curr_raw_frame_to_master, sizeof(curr_raw_frame_to_master)) != 0 ) { @@ -463,11 +461,9 @@ #if defined(DEBUG_GRID_EYE) if( memcmp(prev_raw_frame_to_master, curr_raw_frame_to_master, sizeof(curr_raw_frame_to_master)) != 0 ) { - wait_ms( 5 ); // Convert raw data sent from slave to a 16 bit integer array by calling this convRaw8x8Data2Point25degC(curr_raw_frame_to_master, conv_frame_to_master); - wait_ms( 5 ); // Next Print off the Converted data pc.printf("\r\nFrame %d data: \r\n", frame_idx); @@ -487,7 +483,7 @@ frame_idx = frame_idx +1; } #endif - wait_ms( 20 ); +// wait_ms( 10 ); memcpy(prev_raw_frame_to_master, curr_raw_frame_to_master, sizeof(curr_raw_frame_to_master)); #endif @@ -526,7 +522,7 @@ /*************************************************************************** * Lora Communications **************************************************************************/ - wait_ms( 10 ); +// wait_ms( 10 ); SX1276PingPong(); /***************************************************************************