527
you are viewing a single comment's thread
view the rest of the comments
[-] psud@aussie.zone 7 points 1 day ago

I asked gpt for code to aim a heliostat

It needed a module to get the sun's position, it used sun::alt:: azimuth which doesn't exist rather than Astro::Coord::ECI::Sun

It needed a module to calculate mirror angle between the Sun's altitude and azimuth and the target altitude and azimuth. It left that commented out rather than selecting the altitude halfway between Sun and target and azimuth between Sun and azimuth

It turns out there's precious little on the internet on how to aim a mirror, partly because it's not popular, partly because it's dead simple

this post was submitted on 01 Apr 2025
527 points (96.8% liked)

Programmer Humor

22189 readers
4037 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS