digirec / megapirateng

Automatically exported from code.google.com/p/megapirateng
0 stars 0 forks source link

Please include OptFlow Sensor code in MPNG /beta #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. none

What is the expected output? What do you see instead?
N/A

What version of the MegaPirateNG are you using?
#define THISFIRMWARE "MegaPirateNG V2.9 R7"

Please provide any additional information below.

This patch add support for optical flow sensor ADNS3080. Libraries 
AP_Semaphore, SPI3 and AP_OpticalFlow was copied from ArduPilot-Mega repository.

Original issue reported on code.google.com by krzyszto...@gmail.com on 18 Mar 2013 at 11:29

Attachments:

GoogleCodeExporter commented 9 years ago
It's not so easy. I need some time to check how it will work. At least on CRIUS 
AIOP v2 we have dataflash connected to SPI interface.
Also SPI3 - uses Serial3 in SPI mode (maybe I'm wrong), but Serial3 used for 
Telemetry.

Original comment by Alexey.K...@gmail.com on 19 Mar 2013 at 7:13

GoogleCodeExporter commented 9 years ago
That's right. If ADNS3080 is connected to SPI (ICSP header) and pin 34 (CS) 
then dataflash need to be disabled. If it is connected to USART3 then telemetry 
needs to be disabled. Teoretically SPI can be shared between flash and optflow, 
using Chip-Select on SPI. I have only Crius AIOP 1.0 and 1.1 so I cannot test 
this right now.

Original comment by krzyszto...@gmail.com on 19 Mar 2013 at 9:21