Documentation sections
Sensor Accuracy Budget
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug sensor-accuracy-budget. Calculate total sensor error using RSS and worst-case methods. Analyze offset, gain, nonlinearity, resolution, and temperature drift contributions.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| offsetErrornumber | % FS | at least 0 | 0.1 | Offset Error |
| gainErrornumber | % FS | at least 0 | 0.2 | Gain/Sensitivity Error |
| nonlinearitynumber | % FS | at least 0 | 0.1 | Nonlinearity |
| resolutionnumber | % FS | at least 0 | 0.05 | Resolution Error |
| tempDriftnumber | % FS/°C | at least 0 | 0.005 | Temp Drift |
| tempRangenumber | °C | at least 0 | 40 | Temperature Range |
| errorTermsnumber | none | 0 … 6 | 0 | How many further error terms the budget includes (0–6) |
| term1Errornumber | % FS | 0 … 100 | 0 | A further error, such as hysteresis, repeatability, long-term stability or the ADC reference |
| term2Errornumber | % FS | 0 … 100 | 0 | A further error, such as hysteresis, repeatability, long-term stability or the ADC reference |
| term3Errornumber | % FS | 0 … 100 | 0 | A further error, such as hysteresis, repeatability, long-term stability or the ADC reference |
| term4Errornumber | % FS | 0 … 100 | 0 | A further error, such as hysteresis, repeatability, long-term stability or the ADC reference |
| term5Errornumber | % FS | 0 … 100 | 0 | A further error, such as hysteresis, repeatability, long-term stability or the ADC reference |
| term6Errornumber | % FS | 0 … 100 | 0 | A further error, such as hysteresis, repeatability, long-term stability or the ADC reference |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| tempError | % FS | Temperature Error |
| totalRssheadline | % FS | Total Accuracy (RSS) |
| totalWorstCase | % FS | Total Accuracy (Worst Case) |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.