Comments (6)
see calibrationOn
and calibrationOff
from qtr-sensors-arduino.
from qtr-sensors-arduino.
What exactly do you mean? What have you already tried and why did it not work?
from qtr-sensors-arduino.
from qtr-sensors-arduino.
First of all, look at the definition of struct CalibrationData
in QTRSensors.h so you know what data that struct contains. Then use the C++ assignment operator (=
) to set the values of each member. For examples:
sensors.calibrationOn.initialized = true;
sensors.calibrationOn.minimum = your_array_of_minima;
sensors.calibrationOn.maximum = your_array_of_maxima;
This seems like a general C++ programming question. We use GitHub issues to keep track of bugs and feature requests in the library, so if you need more help the more appropriate place to ask would be:
from qtr-sensors-arduino.
Note: the destructor of QTRSensors uses free
to free those arrays, so you should either allocate your arrays yourself with malloc
or by calling QTRSensors::calibrate
(and then overwriting the values it stores in the newly-allocated arrays).
from qtr-sensors-arduino.
Related Issues (11)
- Should be using virtual methods? HOT 2
- it does not running one function HOT 2
- Question: Difference between the documented value and the value read by the sensor
- Issue reading white line on black background HOT 1
- Bug in QTRSensors::readLinePrivate()? HOT 2
- QTRSensors::calibrateOnOrOff Min/Max Value Storage HOT 1
- Suggestion for all Pololu arduino libraries HOT 1
- Invalid library HOT 3
- problem withe the "=" operator HOT 5
- Feature: provide default RC timeout as a constant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtr-sensors-arduino.