Hi guys so we recently got our v5 system and my team decided on having a potentiometer on our bot to change our autos. So i was wondering if it is possible to get updated values from the potentiometer on the brain screen?
thanks
Hi guys so we recently got our v5 system and my team decided on having a potentiometer on our bot to change our autos. So i was wondering if it is possible to get updated values from the potentiometer on the brain screen?
thanks
What programming language are you using?
i am using pros and c
per our discussion in the Unofficial VEX Discord Server, a minimal example of this in C++ would be something like:
void opcontrol() {
pros::ADIPotentiometer potentiometer('a');
while (true) {
std::int32_t value = potentiometer.get_value();
pros::lcd::print(0, "potentiometer value: %d", value);
pros::Task::delay(20);
}
}
The equivalent C example would look something like:
void opcontrol() {
while (true) {
int32_t value = adi_analog_read('a');
lcd_print(0, "potentiometer valueL %d", value);
task_delay(20);
}
}
@DRow More phishing scam spam
Everyone else:
So, the right side of the V5 Brain is what decides the next bug to present to the user?
If so, can users just cut their V5 Brains in half and use only the left sides to avoid encountering bugs?