FA-93614 / Solar tracker geometry / Member archive
Torque-tube inclinometer rotation: angle normalisation · case 04
Angles past the flip point are reported beyond +-180.
Case contract
ax (across-axis) and az (normal) are gravity components in g. The magnitude must be within [0.8, 1.2] g, else [None, 'fault']. Rotation = atan2(ax, az) in degrees, negated for a sensor mounted on the west side, then minus the calibration offset, normalised to (-180, 180]. Return [angle rounded 2, 'ok'].
Why this case matters
Single-axis and dual-axis solar trackers turn a sun direction into actuator commands; a sign, frame or limit mistake points a whole plant away from the sun or into a mechanical stop.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: angle normalisation | [-182.0, "ok"] | [178.0, "ok"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗