Skip to content

Example3 SetFilterCoeffecients occasionally produces bad output #1

@fischermoseley

Description

@fischermoseley

Configuration

  • Reproduceable with software from commit hash ad66b22

  • SparkFun Redboard with Qwiic Shield connected to a MCP9600 via Qwiic.

  • Example3_SetFilterCoeffecients.ino flashed and serial terminal open.

  • The variable "coefficient" (defined on line 22) must not be equal to zero or greater than seven for the code to work at all.

  • This issue seems to happen for coefficient = 2, 3, 4 but it seems to not happen for coefficient = 5, 6,7.

Expected Output

For coefficient = 2:
Thermocouple: 22.87 °C Ambient: 23.25 °C Temperature Delta: -0.44 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.25 °C Temperature Delta: -0.50 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.31 °C Temperature Delta: -0.50 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.31 °C Temperature Delta: -0.50 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.25 °C Temperature Delta: -0.50 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.25 °C Temperature Delta: -0.50 °C Current Coeffecient: 10

Actual Output

For coefficient = 2:
Thermocouple: 22.81 °C Ambient: 23.31 °C Temperature Delta: -0.50 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.25 °C Temperature Delta: -0.50 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.25 °C Temperature Delta: -0.50 °C Current Coeffecient: 10 Thermocouple: 22.81 °C Ambient: 23.25 °C Temperature Delta: -0.50 °C Current Coeffecient: 0 Thermocouple: 22.81 °C Ambient: 23.31 °C Temperature Delta: -0.50 °C Current Coeffecient: 10

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is neededwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions