Since winter has arrived, it’s time for yearly maintenance. Last year I gave myself lots of work when I simply cut up all the wiring of the Discus. I traced every wire in the glider and put shrink-sleeve labels on them all. After that, I put a big 24-pin connector between the panel and the glider.
This year is much easier. Just the regular maintenance, nothing big is planned. Some paint chips need fixing, but other than that it’s just the yearly inspection list.
I did choose to work on two projects though, since I now have the instrument panel at home and that makes it easy to make some changes.
Those two projects taught me a lot about regulations, TDD, CI/CD and OOP.
SoarHub

The first project is a generic SoarHub for my panel. As you can see in the picture, my wiring is a mess. Part of this is caused by in-season changes – I swapped the KRT2 radio for an AC-1 + ACD57 mid-season – but part of it is just inherent.
This should be different. I am working on a generic Hub for all equipment. What most of the devices in my panel have in common is: they want power and they use RS232 for communication. So I’ll start there.
Starting small
In preparation for power distribution and fuses to be integrated in the communication backbone of the glider, I am going to start small: I will distribute the power to non-essential (non-Form1) equipment in my own hardware and will measure (and log) the power consumption. That allows me to learn about the power characteristics of each device and perform dry tests of load-shedding and safety logic. The software for this will probably take long to write, but at least the hardware is ready.
Regulations
Since everything I do falls under CS-STAN, I pretty soon found myself digging into the regulations that it references. Particularly, FAA AC-43.13. This sets out guidelines for electrical installations. It lists requirements on wiring, fuses, you name it…
And this is exactly where my naive vision meets reality: every system must be protected by a separate fuse or circuit-breaker. This must be reachable by the pilot in flight. It must be labelled, and it may not auto-reset.
This is a problem. I wanted to create software-defined fuses – which are by definition not reachable by the pilot – that reset based on some logic to be defined later. That’s not going to work, and I’m not at a stage where I want to appeal for alternate means of compliance.
So I have to dial everything a little bit back. I created a schematic that just measures the current. There is only one component, the current shunt, extra in the power supply of the instrument that I power. With some help, I performed an FMEA to help me figure out the ways in which my circuit can break and what the consequences are. I’m currently down to one fault causing the instrument to lose power every 1 million operating hours, which should be good enough for non-essential equipment, where losing it is a minor failure.
I want to make this kind of analysis part of my CI/CD pipeline, but I’m not yet sure how to do that. In true TDD fashion this kind of test should be automatic and it should fail a revision of the design that doesn’t supply power to the downstream instrument with a probability lower than a certain threshold. I’m not yet sure how to get there, and I fear it might involve writing software myself. I don’t want to spend that time yet, but I will have to at some point.
In true OOP-fashion – isolate components – I made a circuit that is entirely galvanically isolated from everything else besides the instrument it measures. It takes a tiny bit of power and ground from the power input, powers an INA226 power monitor. The INA226 can short between its sensing lines and ground, so there are protections to make sure that doesn’t overheat the INA226 (causing fire) and doesn’t affect the power to the instrument.
So SoarHub version 1 will act as an RS232 hub at first, and measure the current used by all non-essential instruments (vario, FLARM). If that works well, I can look into powering the radio and transponder as well.
Measurement Bay
Besides some instrumentation in the panel, I also want to move the IMU and one of the GPSes behind the pilot. The analysis done this fall taught me that compensation was needed when the IMU was mounted in the panel. I could also see that the IMU was not always in the exact same angle. So I decided to create a module behind the pilot’s head to house some electronics.
The intention here is to define an empty box with a maximum weight and decide later what will be mounted inside. The dimensions will be pre-defined. That way I should be able to mount whatever I want inside without it affecting the airworthiness of the Discus. I will apply to the LBA for a Minor Change as soon as I have the details worked out.
Replica ReiseTank

My first thought was to make a replica of the ReiseTank that my glider has. It’s the metal structure on the right. It can contain a maximum of 16 liters of fuel (about 11 kilograms of weight) and is secured inside the fuselage with the metal rods you see sticking out to the right and to the top.
After measuring the dimensions of the tank and tracing the outlines of the front and back on paper, I gave everything to Claude Opus 5.5 and after some back-and-forth got a 3d model back. It was able to split it into 4 STL files for 3d printing. About 8 hours later I had a replica fuel tank made from PLA. You can see there is some warping in the replica, but this is enough for testing the fit.
The replica fit the first time I tried it! So I talked to some friends and figured it would probably be best if I have a replica made from glass-fiber. I contacted one of the Akafliegs and they gave me a very reasonable quote, but it was still way over my budget. Back to the drawing board…
Replica SlidingTray

Then I talked to Roald, one of my friends who is a very good sounding board for me in these situations, and he suggested I stop looking at the tank and start looking at the tray that carries the ReiseTank. It’s the horizontal tray right above the main spars in the picture.
You can clearly see that its mounting is much simpler than that of the ReiseTank: just two screws with self-locking nuts. So I unscrewed the original part and inspected it. Roald mentioned that in the Schempp-Hirth Janus this tray is made of wood, and that in later gliders it’s the same wood but now covered by glass-fiber. That’s also the case here: it’s multiplex wood covered with some glass-fiber.
I contacted Schempp-Hirth to ask what a replica would cost from them and got a quote back, which was a bit high for my taste. I will model this tray and look if I can 3d-print a replica that’s strong enough for what I want. I need to re-create the overhanging surfaces in the replica, as Schempp-Hirth told me they exist to prevent objects from falling into the controls. I will start some tests to see if the stronger filaments can make a replica that’s safe, using carbon-based filaments if needed. Naturally I will test for strength, heat, creep and flammability.
Besides the structural requirements – it needs to withstand the limit loads for a powered glider – for the future instrumentation bay, there are also some other concerns. I want to route electronics into it, mount antennas inside it and I might want to route pressure hoses towards it. The LBA was kind enough to remind me that it might be useful to think about that too and define how that should work.
All these things – the dimensions, the loads, the connections, the material properties – are just interface requirements as I know them from OOP. They can (and should) be tested in CI/CD, so I can iterate on the part using TDD to ensure every change still complies with the Minor Change.
Conclusion
So despite not having a lot of regular maintenance, I am still pretty busy with these projects. I am very grateful for all the help I received so far, from the LBA, from my Idaflieg friends and from Roald. I find it interesting how the principles I learnt from computer programming – defining clear interfaces, splitting a design into modules – transfer back into working with hardware.

