1 / 8

March 23, 2011

TEAM 9 - MRAV SOFTWARE DESIGN NARRATIVE Nick Gentry, Vinayak Gokhale , Vineet Ahuja & Oliver Staton. March 23, 2011. Design Considerations. Peripherals: ADC, UArt , Timer, I2C Constants stored in Information memory portion of Flash All peripherals will be Flag driven. Why?

merlin
Download Presentation

March 23, 2011

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TEAM 9 - MRAVSOFTWARE DESIGN NARRATIVENick Gentry, VinayakGokhale, Vineet Ahuja & Oliver Staton March 23, 2011

  2. Design Considerations • Peripherals: ADC, UArt, Timer, I2C • Constants stored in Information memory portion of Flash • All peripherals will be Flag driven. Why? • JTAG ports will be used for debugging

  3. Main Design Consideration • ADC used to Sample Ultrasonic Sensors at 20 Hz • Gyroscope sampled at 250 – 300 Hz • Accelerometer sampled at 250 – 300 Hz • Magnetometer sampled at 10Hz • User inputs at 250 – 300 Hz

  4. START SENSOR SAMPLE == 1 INITIALIZE GLOBAL VARIABLES VERIFY SENSOR IDS SAMPLE SENSORS by enabling interrupts YES NO NO WRITE CONSTANTS TO NON-VOLATILE FLASH YES PIDCOUNT == 50 CHECK ESC ARM CONDITION FLAG CALCULATE MTR DUTY CYCLES YES NO INITIALIZE:ADCTIMER_A, B UART / I2C NO YES SET NEW PWM VALUES INITIALIZE ESCs , BEGIN IDLE CONDITION ENABLE PERIPHERALS W/O INTERRUPTS except UArt IF HEARTBEAT == 100 NO NO WHILE (1) VERIFY CONNECTION W/BASE STATION YES TOGGLE HEARTBEAT LED YES

  5. Timer_A Interrupt Sensor counter == val YES Enable interrupt, set flag & set counter to 0 NO Increment counter Exit

  6. PID STABILITY LOOPS y.pitchRate North tilt y.pitch ROTATE TO BODY r.pNy.pNy.vN F-B PID PID PID PID PID pitch y.yaw y.rollRate East tilt y.roll r.pEy.pEy.vE ROTATE TO BODY PID L-R y.yaw roll MOTOR MIXER r.hy.hy.w SUM (L+R+F+B) -1 yawRate r.yaw y.yawy.yawRate PIDw/ LPF L+R-F-B

  7. Status

  8. The END

More Related