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:
- 24:e8d03912f303
- Parent:
- 23:f74a50977593
- Child:
- 25:1a031add188a
--- a/main.cpp Wed Jul 18 18:52:30 2018 +0000 +++ b/main.cpp Wed Jul 18 21:25:17 2018 +0000 @@ -69,7 +69,7 @@ **************************************************************************/ #if defined(TARGET_MAX32630FTHR) // Master Device: BLE-to-LoRa Gateway int frame_idx = 0; - #elif defined(TARGET_MAX32620FTHR) // Client Device: LoRa Controlled Robot + #elif defined(TARGET_MAX32620FTHR) // Slave Device: LoRa Controlled Robot // none yet #endif @@ -80,7 +80,6 @@ * Grid Eye Sensor **************************************************************************/ #if defined(TARGET_MAX32630FTHR) // Master Device: BLE-to-LoRa Gateway - // Check to see if the contents of the previous scan are the same. If they are different then continue with converting if( memcmp(prev_raw_frame_data_from_slave, curr_raw_frame_data_from_slave, sizeof(curr_raw_frame_data_from_slave)) != 0 ) { @@ -104,14 +103,11 @@ // Increment frame counter frame_idx = frame_idx +1; } - - #elif defined(TARGET_MAX32620FTHR) // Client Device: LoRa Controlled Robot + #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_data_to_master); - #endif - /*************************************************************************** * Lora Communications **************************************************************************/