Needs A Title


Is this thing on? Did I say that out loud?

Confident Idiot

I thought I’d have a play with Copilot to see what it could do as I maintain this blog using VSCode as it is significantly better than both emacs & vi1. I thought a nice simple task would be to add OpenGraph tags the the head of each most. It was more painful than I thought. TL;DR It finally got it right, but it didn’t notice it wasn’t reading the output of it’s own test tools and it happily made assumptions without testing them.

Read More


Unbalanced

My plane currently weighs 235g (minus a few grammes of control surface connections), but it has a weight problem. I used FreeCAD to design and print a simple balance frame. (I should have put a nice chamfer on the joints) I then removed the battery (27g 600mAh 2S LiPo) and put some scales under the tail. They read 25g. In order to get the plane to balance, I’d need to place the battery somewhere about 300mm in front of the centre of gravity.

Read More


Is It A Bird? Is It A Plane?

It’s A Plane When I was a teenager, I used to belong to the Chester Model Flying Club (which now appears to be defunct :( ) and I flew electric powered gliders of about 2M wingspan. Typically a balsa framework, with a 540 motor and a 6 cell NiCad battery. Power (& skill) were marginal, weight was high, but I had fun. I’ve always hankered getting back into it, partly becuase my route to and from work can go via the Nomansland Common where there are facilities to fly planes.

Read More


VE Analysis Part 2

After my last post I drank some more wine, read the comments it generated and got down to some jolly good proper thinking. I realised that I was distracting myself with standard deviation and such like, and a more empirical approach may work. The rough pseudo code is for each log entry that isn't filtered out by temp/RPM etc Find the AFR in the future by doing a bilinear interpolation on a delay table Find the actual VE by doing a bilinear interpolation on this record Find the target AFR by doing a bilinear interpolation on this record Work out how far out of whack the actual AFR is For each of the 4 cells involved in the current reading, add a weighted adjustment record depending on where the bilinear interpolation lands for each cell that has more adjustment records than the minimum number of hits required Calculate a weighted average adjustment to apply to the cell create a new VE table by applying the adjustments to the base table And it seems to work.

Read More


VE Analysis

I’ve been doing more fiddling with log file and VE analysis, and I’m a little stumped as to where to go with it next. A Bit Of Background VE analysis is basically looking at what the air/fuel ratio the car is running at at a specific load/speed, comparing that to what we think it should be, and then fiddling with the fueling to get it closer to the ideal. The authors of the original Megasquirt firmware published a PDF that went in the basic maths of this.

Read More