pros/vision.hpp file

Contains prototypes for the VEX Vision Sensor-related functions in C++.

Contents

This file should not be modified by users, since it gets replaced whenever a kernel upgrade occurs.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Namespaces

namespace pros
LLEMU Conditional Include
namespace pros::v5 inline

Classes

class pros::v5::Vision

Functions

const pros::Vision operator""_vis(const unsigned long long int m)
Constructs a Vision sensor from a litteral ending in _vis.

Function documentation

const pros::Vision operator""_vis(const unsigned long long int m)

Constructs a Vision sensor from a litteral ending in _vis.

Returns a pros::Vision for the corresponding port

Example

using namespace pros::literals;
void opcontrol() {
 pros::Vision vision = 2_vis; //Makes an Vision sensor object on port 2
}