ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
internal_lsq_sums_t Struct Reference

Accumulated least-squares sums driving the calibration solve. More...

Data Fields

float Sx
 Sum of raw x.
float Sy
 Sum of raw y.
float Sxx
 Sum of raw x^2.
float Syy
 Sum of raw y^2.
float Sxy
 Sum of raw x*y.
float Su
 Sum of screen x.
float Sv
 Sum of screen y.
float Sxu
 Sum of raw x * screen x.
float Syu
 Sum of raw y * screen x.
float Sxv
 Sum of raw x * screen y.
float Syv
 Sum of raw y * screen y.

Detailed Description

Accumulated least-squares sums driving the calibration solve.

Holds the 11 running sums needed to assemble the 3x3 normal-equation matrix and both right-hand sides for the weighted-least-squares affine fit (Fang & Chang 2007). Bundling them keeps the ra8_touch_cal_compute body compact while preserving bit-exact math.

Definition at line 324 of file ra8_touch_cal.c.

Field Documentation

◆ Su

float internal_lsq_sums_t::Su

Sum of screen x.

Definition at line 330 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Sv

float internal_lsq_sums_t::Sv

Sum of screen y.

Definition at line 331 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Sx

float internal_lsq_sums_t::Sx

Sum of raw x.

Definition at line 325 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Sxu

float internal_lsq_sums_t::Sxu

Sum of raw x * screen x.

Definition at line 332 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Sxv

float internal_lsq_sums_t::Sxv

Sum of raw x * screen y.

Definition at line 334 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Sxx

float internal_lsq_sums_t::Sxx

Sum of raw x^2.

Definition at line 327 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Sxy

float internal_lsq_sums_t::Sxy

Sum of raw x*y.

Definition at line 329 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Sy

float internal_lsq_sums_t::Sy

Sum of raw y.

Definition at line 326 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Syu

float internal_lsq_sums_t::Syu

Sum of raw y * screen x.

Definition at line 333 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Syv

float internal_lsq_sums_t::Syv

Sum of raw y * screen y.

Definition at line 335 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().

◆ Syy

float internal_lsq_sums_t::Syy

Sum of raw y^2.

Definition at line 328 of file ra8_touch_cal.c.

Referenced by internal_accumulate_sums(), and ra8_touch_cal_compute().


The documentation for this struct was generated from the following file: