Code Monkey home page Code Monkey logo

Comments (6)

DavidEGrayson avatar DavidEGrayson commented on August 27, 2024

see calibrationOn and calibrationOff

from qtr-sensors-arduino.

Agents007 avatar Agents007 commented on August 27, 2024

from qtr-sensors-arduino.

DavidEGrayson avatar DavidEGrayson commented on August 27, 2024

What exactly do you mean? What have you already tried and why did it not work?

from qtr-sensors-arduino.

Agents007 avatar Agents007 commented on August 27, 2024

from qtr-sensors-arduino.

DavidEGrayson avatar DavidEGrayson commented on August 27, 2024

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:

https://forum.pololu.com

from qtr-sensors-arduino.

DavidEGrayson avatar DavidEGrayson commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.