Skip to content

Sensor Library - SPTD25-20-1000H#8

Merged
JLefebvre55 merged 31 commits intostagingfrom
sensor-sptd25-20-1000h
Jun 6, 2021
Merged

Sensor Library - SPTD25-20-1000H#8
JLefebvre55 merged 31 commits intostagingfrom
sensor-sptd25-20-1000h

Conversation

@JLefebvre55
Copy link
Copy Markdown
Contributor

@JLefebvre55 JLefebvre55 commented May 17, 2021

Test Script Author: Urmil Modi @urmilmodi
Current Hardware Owner: Urmil Modi @urmilmodi
Final Review: Urmil Modi @urmilmodi

  1. Author reviews library contents
  2. Jayden Lefebvre writes Arduino test script using library
  3. Current owner tests library implementation on hardware, documents results

Comment on this PR if you have any questions

urmilmodi and others added 24 commits March 27, 2021 23:15
Error and debug state enums
Sensor and Arduino ID enums
Structs:
- Datum - single value+units
- State - all datum+error+debug states)
- Data - state+IDs, passed to computer
Begin and update functions
Constructor w/ allocation
Error and debug state enums
Sensor and Arduino ID enums
Structs:
- Datum - single value+units
- State - all datum+error+debug states)
- Data - state+IDs, passed to computer
Begin and update functions
Constructor w/ allocation
Added enum prefixes (DS, S, ERR)
Wrappers now return pointers to main state
Read, init now return t_errorlevel
Read is now passed pointer to t _datum array BUFFER, buffer copied to state in wrapper (actual behaviour depends on returned errorlevel)
read now passes by reference, rather than reference-reference (makes more sense, it's already allocated)
const char* for units in t_datum proper
fixed - now semicolon-terminated struct members
@JLefebvre55 JLefebvre55 requested a review from urmilmodi May 17, 2021 16:24
@JLefebvre55 JLefebvre55 changed the title Sensor sptd25 20 1000h Sensor Library - SPTD25-20-1000H May 17, 2021
Copy link
Copy Markdown
Member

@urmilmodi urmilmodi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The child class operates, although the sensor needs to be calibrated.

@JLefebvre55
Copy link
Copy Markdown
Contributor Author

@urmilmodi Can you add a screenshot of the sensor output when you get a chance?

@urmilmodi
Copy link
Copy Markdown
Member

1000H

@JLefebvre55 JLefebvre55 merged commit d1eda7e into staging Jun 6, 2021
@JLefebvre55 JLefebvre55 deleted the sensor-sptd25-20-1000h branch June 6, 2021 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants