These are the most common issues encountered during PEPS/OPTICAM development. Memorize these!
| Topic | β Correct | β Wrong |
|---|---|---|
| Square Root | w_result = (w_value) @ 0.5 |
sqrt(w_value) |
| Modulus | w_result = w_a % w_b |
mod(w_a, w_b) |
| Trig Functions | w_angle = acs(w_dot)(returns degrees) |
w_angle = acos(w_dot) * 180 / pi |
| Negative in SLD | w_neg = 0 - w_val |
sld transform 1 i_body -w_val 0 0 0 0 0 |
| Expressions in SLD | w_temp = w_a + w_b |
sld rotate 1 i_body 0 0 0 0 0 1 (w_a + w_b) |
| File Line Endings | CRLF (Windows) |
LF only (Unix) |
β οΈ Important: PEPS does not have
sqrt(), mod(), or acos() functions. Using them will cause silent failures or errors.