Updates
What changed recently
Short progress summaries across all my projects, newest first. The detail lives in each project's articles.
Updates are bullet-point summaries generated with AI from my commits and build notes, then checked by me. Project articles and learning notes are written by me.
- Active
- Got the first green firmware build from GCC and CMake: 36.2 KB of the 256K flash (14%) and 2.5 KB of RAM (5%). It had not been flashed yet.
- Added a
_writeretarget soprintfreaches the UART under newlib. - Added a firmware build job to CI alongside the host tests, and both passed.
- Active
- Wrote the remaining-implementation plan for a less capable model to execute: complete code for every file, exact commands, nothing inferred. It ran steps 1 to 3 and the code matched the plan, but it left the generation script uncommitted, so the work existed only on disk.
- The generation script hardcoded Ollama’s port. Swapped both the URL and the model name to environment variables, because the development machine runs llama.cpp on 8899 and the Pi will run something else.
localhostin that variable resolves to the dev container, not the host serving the model.host.docker.internalis the fix, and it is the kind of thing that reads as “the model is down”..devcontainer/devcontainer.jsonwas listed as created in the previous session’s notes and did not exist. Described, never written. The first instance of a note recording an intention as a fact.
- Active
- Planned a GCC firmware build with
arm-none-eabi-gcc, CMake and OpenOCD, running alongside the vendor’s Keil project. - Found the vendor already shipped a GCC startup file and linker script for the STM32F103RCT6, a Cortex-M3 with 256K flash and 48K RAM.
- Vendored the CMSIS and peripheral library sources. Nothing had been compiled yet.
- Planned a GCC firmware build with
- Active
- Added unit tests for
AppControlusing mock sensor and motor interfaces, including the tilt cutoff at 45° and the normal drive path. All 14 test cases passed locally. - Fixed test discovery in the CMake build with
enable_testing()andDISCOVERY_MODE PRE_TEST, committed the control changes, and CI passed.
- Added unit tests for
- Active
- First conversion run over the 101 guides: 84 converted, 16 skipped, 1 error. The skips are folders holding more than one
.docxand therefore colliding on slug, and the first file wins. The error isaccord-euro-r.docx, whose zip structure is broken and which no reader can recover; that guide is simply absent. - Image extraction produced nothing, and it took a re-run to work out why: the photos sit beside the
.docxin each folder rather than embedded inside it, so the converter’s image handler had nothing to find. - Decided the guides carry their real press photos while generated articles get a placeholder. The text is original either way; the split is honest about which pages had a human behind them.
astro devwithout--hostbinds only to127.0.0.1inside the dev container, which the editor’s port forwarding cannot reliably reach. Minutes lost to a page that looked like it was building slowly.
- First conversion run over the 101 guides: 84 converted, 16 skipped, 1 error. The skips are folders holding more than one
- Active
- Wired the safety cutoff and the forward and turn commands (
move_x,move_z) throughAppControl::update, with the deadzone and clamp applied before the motors are driven. - A review found the commands were not yet passed into the velocity and turn controllers, and that was fixed. The changes were not yet built or committed.
- Wired the safety cutoff and the forward and turn commands (
- Active
- Fixed the simulator’s physics integration: each step overwrote the velocity with
velocity_ = force * dtinstead of accumulating it with+=. - Named the motor timer’s magic numbers, such as
PWM_ARR = 2880for 25kHz PWM. - Found that the control loop did not yet apply the motor deadzone, the PWM clamp or the safety cutoff.
- Fixed the simulator’s physics integration: each step overwrote the velocity with
- Active
- Added unit tests for the
TurnPDcontroller covering zero input, gyro output and themove_zturn offset, alongside the existingVelocityPItests. - Added a GitHub Actions workflow that builds with CMake and runs the tests with CTest on every push. It had not been pushed to GitHub yet.
- Added unit tests for the
- Active
- Surveyed the source material: 101
.docxbuyer’s guides, each in its own folder with photos beside it. Section headings are bold paragraphs rather than Word heading styles, and the spec data is in real Word table elements, so it should survive conversion as markdown tables. - Decided the generator writes from one section rather than a whole guide: roughly 1,500 distinct chunks across the corpus, picked one a night. The guides themselves get published too, so the source is also the archive.
- The brief’s cron line was
node scripts/generate-article.js, which cannot run a TypeScript file. Corrected totsxbefore it reached a Pi.
- Surveyed the source material: 101
- Active
- Added a CMake build for the PC targets, the simulator and the unit tests, using C++17 with Google Test fetched at configure time. The STM32 firmware still built in Keil.
- Added a Docker build environment and a VS Code devcontainer on the same Dockerfile.
- Registered each test case with CTest through
gtest_discover_tests.