Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

Sections for requesting team to fill out:

  • Admin preparation

  • Test Cards / Test Plan

  • Mandatory Attendees

Sections for flight test coordinator to fill out:

  • Flightline team

  • Location

  • Status

  • Drone

Sections for flightline team to fill out:

  • EFS to fill out Card #1, #2, #3 (Opflow, Tracking Antenna, Obstacle Avoidance)

📋 Admin Preparation

Your status should read “submitted” when you submit the FTR to our Flight Test Coordinator.

Once the coordinator approves, and a date/location/drone has been assigned, the status will change to “waiting for sub team review”. Once all sub-teams have reviewed and signed off, the status will change to “approved”

Requested By

Anthony Luo

Sub-Team Review

(To be checked once reviewed by sub-team representative)

  • Mechanical
  • Electrical
  • EFS
  • Autonomy
  • Operations

Date of Request

Jan 16, 2024

Goal Summary

  • Pegasus Opflow calibration

  • Pegasus MAGFit check

  • Tracking antenna algorithm check

  • Houston Obstacle avoidance functionality check

Status?

WAITING FOR SUB-TEAM REVIEW

Desired Airframe

Houston / Pegasus

Location + Time

WrestRC 1300-1800

☀️ Wx

https://www.windy.com/station/ad-cykf?42.541,-80.379,8 Waterloo Weather Station

image-20240125-155541.pngimage-20240127-140426.png

🥅 Testplan - to be filled out by requesting team

Create ONE table per test-item. Eg: “Landing pad images over asphalt”, “landing pad images over grass”, “landing pad images over grass, high” should all be unique tables.

Use each expand to capture one series of tests, eg “Landing pad detection” or “Auto-tuning”.

 Card 1: Pegasus OpFlow + Lidar Calibration

Test #1: Opflow calibration

Procedure

Goals / Objectives

Knockoff criteria

  1. Inflow calibration setup

    1. Set RC6_OPTION = 158 (Optflow Calibration)

    2. Setup the EKF3 to use GPS (the default)

      1. EK3_SRC1_POSXY = 3 (GPS)

      2. EK3_SRC1_POSZ = 1 (Baro)

      3. EK3_SRC1_VELXY = 3 (GPS)

      4. EK3_SRC1_VELZ = 3 (GPS)

      5. EK3_SRC1_YAW = 1 (Compass)

      6. EK3_SRC_OPTIONS = 0 (Disable FuseAlIVelocities)

  • Obtain images of <x>

  • Verify colour calibration

  • < anything else you’re evaluating >

< list of reasons why you would want to stop the test >

  1. Setup GPS/Non-GPS transitions (to switch between GPS and Optical Flow inflight)

SET UP AND PERFORM BENCH TEST BEFORE LEAVING BAY?

  1. Ensure EKF3 is being used

    1. EK3_ENABLE = 1
      EK2_ENABLE = 0
      AHRS_EKF_TYPE = 3

  2. Ensure default setup

    1. EK3_SRC1_POSXY = 3 (Primary horizontal position from GPS)

    2. EK3_SRC1_VELXY = 3 (Primary horizontal velocity from GPS)

    3. EK3_SRC1_POSZ = 1 (Primary vertical position from barometer)

    4. EK3_SRC1_VELZ = 3 (Primary vertical velocity from GPS)

    5. EK3_SRC1_YAW = 1 (Primary yaw/heading from compass)

    6. SECONDARY SENSOR SOURCE????

    7. EK3_SRC2_ POSXY = 6 (Secondary horizontal position from External Nav)

    8. EK3_SRC2_VELXY = 6 (Secondary horizontal velocity from External Nav)

    9. EK3_SRC2_POSZ = 1 (Secondary vertical position from barometer)

    10. EK3_SRC2_VELZ = 6 (Secondary vertical velocity from External Nav)

    11. EK3_SRC2_YAW = 6 (Secondary yaw/heading from External Nav)

    12. Ensure the fusing of all velocities are disabled by unchecking the EK3_SRC_OPTIONS parameter's "FuseAlIVelocities" bit:

  3. BENCH TEST (use the auxiliary switch to manually switch between sources)

    1. Connect with a ground station

    2. After switching modes, confirm status via Data Screen messages tab → should be a message

    3. Wait 10 seconds to confirm that EKF stays healthy

      1. EKF label on the HUD should remain white in Mission Planner

    4. Check the vehicle's horizontal position, altitude and heading using the ground station. (what to look for?)

  1. Hover in Loiter mode (>10m)

< etc >

  1. Begin opflow calibration

    1. Pull the auxiliary switch high to start the calibration

    2. Rock the vehicle back and forth in both roll and pitch

  • Check the GCS "Messages" tab for output confirming the calibration is complete

  • FLOW_FXSCALAR and FLOW_FYSCALAR values between -200 to +200 is good

    • FlowCal: Started
      FlowCal: x:0% y:0%
      FlowCal: x:66% y:6%
      FlowCal: x:100% y:74%
      FlowCal: samples collected
      FlowCal: scalarx:0.976 fit: 0.10   <-- lower "fit" values are better
      FlowCal: scalary:0.858 fit: 0.04
      FlowCal: FLOW_FXSCALER=30.00000, FLOW_FYSCALER=171.0000

  1. Use Opflow (Land if GPS/Non-GPS transitions not set up)

If GPS/Non-GPS transitions not set up:

  1. Land the vehicle and setup the EKF3 to use OpticalFlow

    1. EK3_SRC1_POSXY = 0 (None)

    2. EK3_SRC1_VELXY = 5 (Optical Flow)

    3. EK3_SRC1_POSZ = 1 (Baro)

    4. EK3_SRC1_VELZ = 0 (None)

    5. EK3_SRC1_YAW = 1 (Compass)

    6. EK3_SRC_OPTIONS = 0 (Disable FuseAlIVelocities)

  2. Fly the vehicle again to check performance

    1. What are we looking for and what mode?

If GPS/Non-GPS transitions are set up:

  1. SET UP BELOW PARAMETERS PRIOR TO INITIAL TAKEOFF?

    1. RC6_OPTION = 158 (Optflow Calibration)

    2. RC7_OPTION = 90 (EKF Pos Source) low is GPS, middle is OpticalFlow, high is unused

    3. EK3_SRC1_POSXY = 3 (GPS)

    4. EK3_SRC1_POSZ = 1 (Baro)

    5. EK3_SRC1_VELXY = 3 (GPS)

    6. EK3_SRC1_VELZ = 3 (GPS)

    7. EK3_SRC1_YAW = 1 (Compass)

    8. EK3_SRC2_POSXY = 0 (None)

    9. EK3_SRC2_VELXY = 5 (Optical Flow)

    10. EK3_SRC2_POSZ = 1 (Baro)

    11. EK3_SRC2_VELZ = 0 (None)

    12. EK3_SRC2_YAW = 1 (Compass)

    13. EK3_SRC_OPTIONS = 0 (Disable FuseAlIVelocities)

  2. Engage the calibration using RC input 6 (a 2-position switch) and switch between GPS and Optical.

  1. Check lidar calibration?

  1. Review test data?

 Card 2: Tracking Antenna Validation

Test #1: straight passes. PEGASUS or HOUSTON

Procedure

Goals / Objectives

Knockoff criteria

  1. Hover altitude 5m in loiter.

  • Verify antenna is able to point towards the drone

< list of reasons why you would want to stop the test >

  1. Translation motion:

Move in periodic squares moving away from the tracking antenna.

  • Ensure that the tracking antenna remains pointed at the drone

  • tracking antenna loses track on the drone

    • Hover in place and wait.

  1. Translation movement towards extremes of tracking antenna

  • Ensure the tracking antenna continues to function when recovering from extremes

  • Tracking antenna seizes

    • Restart tracking antenna, analyze data, and try again.

 Card 3: Houston obstacle avoidance

Test #1: Stab mode Lidar Verification

Procedure

Goals / Objectives

Knockoff criteria

  1. Takeoff and hover in STAB 1.5-2m AGL. Verify controls.

  • Verify pitch/roll/yaw directions are correct.

  • Verify that Gemini functionality is retained.

  • Verify that flight modes & flight time is correct.

  • Pitch/Roll/Yaw incorrect

    • land, flip in mission planner, re-start test

  • Drone de-stabilizes.

    • Land, evaluate tune, re-start test

  1. Translational movement @ slow speed towards vertical wall

  • Ensure that the proximity sensor is able to detect a wall.

  • contact with the wall

    • back-off and land. Evaluate prop health. Re-start if possible.

  • Loss of heading reference

    • back-off , re-establish, continue.

  1. Maintain desired distance from the wall while spinning heading vector 360

  • Ensure that proximity continues to track at all angles

  1. Approaches from front/side/rear ascending & descending.

  • Basic characterization of obstacle avoidance properties.

Test #2: Loit mode Obstacle Avoidance

Procedure

Goals / Objectives

Knockoff criteria

  1. Takeoff and hover in Loit mode 1.5-2m AGL. Verify controls.

  • Verify pitch/roll/yaw directions are correct.

  • Verify that Gemini functionality is retained.

  • Verify that flight modes & flight time is correct.

  • Pitch/Roll/Yaw incorrect

    • land, flip in mission planner, re-start test

  • Drone de-stabilizes.

    • Land, evaluate tune, re-start test

  1. Translational movement @ slow speed towards vertical wall

  • Ensure that the proximity sensor is able to detect a wall.

  • Ensure that the drone does not move closer nearer to the wall.

  • contact with the wall

    • back-off and land. Evaluate prop health. Re-start if possible.

  • Loss of heading reference

    • back-off , re-establish, continue.

  • Obstacle avoidance malfunction

    • Back-off, re-attempt.

    • If same behaviour, land and evaluate settings.

    • Continue test if possible

  • Loss of drone handling?

    • land if possible , dis-arm, re-attempt & slower speed.

  1. Maintain desired distance from the wall while spinning heading vector 360

  • Ensure that obstacle avoidance continues to track and function at all expected angles.

  1. Approaches from front/side/rear ascending & descending.

  • Ensure that obstacle avoidance continues to track & function at all expected angles.

Test #3: Auto Mission obstacle avoidance

Procedure

Goals / Objectives

Knockoff criteria

  1. Setup an auto mission which passes through an “obstacle”

  • Have a flight path.

  • Path doesn’t generate GG

  1. Set mission to AUTO, takeoff and fly!

  • Ensure obstacle avoidance continues to function!

  • drone does not avoid obstacle

    • Re-take control in stab. Back-away and attempt to re-start.

  • Drone de-stabilizes

    • Re-take control in stab. Back-away and attempt to re-start.

  1. Upon reaching end waypoint, RTL

  • Ensure obstacle avoidance functions in RTL

Test #4: Gemini Range Houston

Procedure

Goals / Objectives

Knockoff criteria

  1. Takeoff and land close range

  • Have a flight path

  • Check short range behaviour

  • Strange error

  • Gemini not work

  1. Takeoff and fly further until (1) no longer feels safe, (2) something funny happens

  • Have a flight path

  • Check long range behavior

''

Necessary Preparation

Explain what capacity you need, what needs to be mounted, etc.

Mechanical

  • Pegasus cleared to fly (mechanically)
    • sensor mount ready
    • Motors + frame rigid
  • Houston cleared to fly (mechanically)
    • sensor mount attached
    • arms + plates rigid

Electrical

  • Pegasus cleared to fly (electrically)
    • harnessing secure
  • Houston cleared to fly
    • Harnessing secure
    • ELRS RX’s secure.

Embedded Flight Software

  • Pegasus Ardupilot Configuration ready
    • Opflow → Offsets correct, usage correct ? (EKF3?)
    • Lidar → Offsets correct, usage correct? Height limits set?
  • Houston Ardupilot Configuration ready
    • Failsafes configured (Radio, GCS, Battery, ETC?)
    • 360 Lidar → Configured, ground tested. Distances set properly?
  • Test area SME available
    • Test procedure is clear → Houston & Pegasus
    • Possible deviations from test understood and considered → Houston & Pegasus
  • Software ground tested
    • Ground tests complete on all airframes (on battery over telemetry)
  • Tracking Antenna
    • Tested ? SME ready?
  • ELRS / Radio management correct.
    • ELRS rx’s on houston & pegasus. → Clear unique models.
    • ELRS Airport on houston → Verify functioning.
    • RFD900x on Pegasus → Verify functioning
    • ELRS Trainer → Verify functioning

Autonomy

  • LTE telemetry ready (question)

🫂 Attendees

This is a section for all attendees from your subteam which will be present for this flight test. (because they are testing their products, or otherwise)

 Vehicle Bookings
image-20240125-155241.pngimage-20240125-155246.png

Name

Phone # (opt)

Sub-team

Driving (question)

Role

Anthony Luo

Director

Y - 5pass SUV

Megan Spee

Director

5-person liftback

Nathan Green

Mechanical

3-277 Dodge Grand Caravan

Ryan Chan

Mechanical

Sam Zhang

EFS

Tim Gu

EFS

Georgia Vachon Westerlund

Ops

Yuchen Lin

EFS


This section and remaining to be filled out by FTC and Flightline Team

Flightline Team

Name

Phone #

Role

Reason

Megan Spee

Pilot

;/

Anthony Luo

Pilot

Pre-Flight Preparation

Checklists

Incident Procedures

⏲️ Flight Test Timeline

Date/Time

Action

Notes

0700

Start charging batteries

4x 6s 5000mah (pegasus)

3x 3s 4000mah (houston)

0800

Begin checklists

0900

Briefing @ WARG Bay

0930

Begin loading vehicles

1000

Arrival at Flight Test Location

1030

Flight Test Card #1 + 2: Opflow calib.

1030

Flight Test Card #3: Houston obstacle avoidance

1200

Packup

1230

Lunch

1300

Debrief

<>


💻 DEBRIEF

Logs:

https://uofwaterloo-my.sharepoint.com/:f:/g/personal/uwarg_uwaterloo_ca/Erxhk4C9AyFKg7gImOuG8osBZL979RM3SIL3OCnDskOkNA?e=uNZ5ph

Media:

https://uofwaterloo-my.sharepoint.com/:f:/g/personal/uwarg_uwaterloo_ca/EnY_jjQ-qNxBvzZG8dXqsmcBWxHpaoz841fN5Z3HShZSRA?e=zyI504

Timeline Recap

9:05 - brief

1000 - Left the bay

1015- Arrived Wrest RC

1032 - Pegasus Takeoffs [50.BIN]

1042 - Pegasus GPS test [

1047 - Pegasus OpFlow test

1049 - Houston Proximity detection (1 stab, 1 loit)

1059 - Autotune on Pegasus [

1145 - Drone picture

+2 more flight on houston - battery swap.

Batteries

1 set of battery for pegasus (4 batteries +) - total FT unknown

4 batteries for Houston - total FT unknown

  • almost all batteries on houston around 14% (guessing 10.6v)

Green/Yellow/Red

  • Lidar not broken

  • Pegasus not broken

  • Manual flights on loiter into walls did not result in crashing

  • RFD900x on houston worked very quickly (last minute switch from Pegasus to Houston)

    • (ELRS did not have air-data rate)

  • Secondary controller worked fine (models were copied day of, but worked).

  • Media gathered

  • Pilot practice

  • We left on time, didn’t forget anything

  • Arm switch on pink controller bit close to the mode switch (in Megan Spee opinion)

    • Models were copied from Blue controller to pink Controller before flight test & without pilot checks.

  • Obstacle avoidance was really shaky in bendyruler pathing, took 4 tries to get past the shed

  • didn’t note down total flight times or battery voltages post-flight

    • Total flight times recorded on controller, but not noted.

    • Takeoff times not recorded.

    • Battery voltages not recorded.

  • pegasus shaking strangely large amounts pre takeoff on arm

  • GPS loiter not good on houston+pegasus

  • Auxiliary video/FPV drones around works for media but was distracting/ interfered with the tests

    • being within yelling range helped: could tell people to back off

  • Houston went up to ~ 40 meters and fell

    • pretty sure it was battery failsafeing

    • Houston batteries ran down to 4% - 10.4 V after recovery

  • Pegasus EKF failure, not sure why

  • LTE connection

    • could not fly after this

  • Pegasus yaw tune was pretty bad

Analysis

Pegasus Op-Flow Calibration [0050.bin]

Took off + op flow calibration worked great

  • FlowX and FlowY scalars set to -158 and -152.

  • Took about ~ 10 seconds to calibrate, required pitch/roll inputs.

EKF failure when transitioning from GPS to non-GPS modes → Entered failsafe and landed.

  • can takeoff in GPS mode and then switch to EKF SOURCE Middle (opflow only)

    • can maintain stable flight / position controlled flight for ~ 10 seconsd before EKF failsafe

  • Had a bit of drifting in xy plane in loiter (not maintaining a very good position hold). Could be due to GPS error (but had opflow?).

    • occured in both GPS and OpFlow modes.

Notes/ next steps:

  • determine root cause

    • See if error is re-producable

  • Do not fly over people/buildings until source/cause is known (potential to enter EKF failsafe upon gps disconnection?)

  • Attempt to determine solutionss

    • Potentially re-configuring EKF sources / blending

    • Potentially re-calibrate accelerometer

    • Potentially examine gps-nongps transitions in more details

Houston proximity

  • Maintained 2m distance (set distance) when flying in loiter towards obstacles.

    • Worked in all directions.

    • Worked the best from the front, not significantly different in all axis.

    • Harder to tell if input commanded was aligned.

  • If you had more momentum approaching the wall, the drone would over-compensate and “bounce” away from the wall.

    • If full throttle, it would move back to 2m.

    • If backed off the throttle, maybe a bit of oscillation.

Pegasus Autotune

  • Pegasus Yaw had significant amounts of overshoot

    • Fixed after re running autotune

Houston Auto mission

  • Took multiple attempts to path around the object.

  • Saw the house, was trying to go around? Seemed like it couldn’t find the place…

    • there were 3 meters high bushes around the house'

Some failure points

  • 4 meters was too tall for the shed/house we were using as a wall obstacle

  • auto mission went close to a pole, resulted in pilot disarming the drone

Todo

Action items for next flight test

  • Try to fix this by recalibrating accelerometer at start of next flight test

  • No labels