It’s been a frustrating week – despite lovely weather, lots broke, and once each was fixed, something else would break. To top is all, an update to the latest version of Jessie yesterday locked the RPi as soon as I kicked off a passive flight. I backed this ‘upgrade’ out as a result. I now I have everything back and working, confirm by hover and 10m lateral flights this morning, although the latter aborted half-way through with an I2C error. Underlying it all is power to the GLL and RPi 3B – I was seeing lots of brown-out LED flashes from the B3 and lots of I2C and GLL errors. I’m consider swapping back to a 2B+ overclocked to 1.2GHz as a result.
In the meantime I have been looking at mapping in more detail as it’s complex and it needs breaking down into easy pieces. Here’s the general idea:
Each polystyrene block is 2.5m long, 1.25m high and 10cm thick. They are pinned together with screw-in camping tent pegs. The plan is to
- fly 10m at 1m height without the ‘maze’, logging compass and GPS to check the results, in particular to see whether
- GPS can be gently fused with RPi ground facing motion tracking to enhance lateral motion distance measurements
- compass can be fused with IMU gyro yaw rate to enforce a better linear flight
- fly 10m without the ‘maze’ again but with fused compass and GPS (assuming the above is OK)
- add the ‘maze’ and fly in a straight 10m line from bottom to top again as a sanity check
- add the Sweep and log it’s contents when doing the same 10m again
- build the flight map in Excel based upon GPS, compass and sweep logs – the results should look like the map with the addition of what garden clutter lies beyond the end of each exit from the ‘maze’
- add a new mapping process to do dynamically what has been done in Excel above
- add object avoidance from Sweep and repeat – this is the hardest bit as it introduces dynamic updates to preconfigured flight plans
- add ‘maze’ tracking code to reach a target GPS position, nominally the center of the ‘maze’ – this stage requires further thought to break it down further.