Coding Errors

I have been encountering errors and I’m not entirely sure what they want me to fix. Any suggestions?
Below is the message in the console:
14:19:11 – info – A tar file has been successfully created at: C:/Users/Student/OneDrive - MN South 365/my stuff/Ribotics/competition.vex
14:19:21 – info – A tar file has been successfully created at: C:/Users/Student/OneDrive - MN South 365/my stuff/Ribotics/competition.vex
14:20:29 – info – tar ‘Competition Template.vex’ succesfully extracted to: C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/examples/Competition/VEX C++/
14:26:07 – info – tar ‘competition.vex’ succesfully extracted to: C:/Users/Student/OneDrive - MN South 365/my stuff/Ribotics/
14:45:17 – info – A tar file has been successfully created at: C:/Users/Student/OneDrive - MN South 365/my stuff/Ribotics/competition.vex
14:46:08 – info – tar ‘Tank Control.vex’ succesfully extracted to: C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/examples/Controller/VEX C++/
14:49:38 – info – tar ‘competition.vex’ succesfully extracted to: C:/Users/Student/OneDrive - MN South 365/my stuff/Ribotics/
15:52:50 – info – changed directory: C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/sdk/user/
15:52:50 – info – C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/sdk/user/
15:52:50 – info – file removed: C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/sdk/user/cxx.o
15:52:50 – info – file removed: C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/sdk/user/cxx.elf
15:52:50 – info – file removed: C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/sdk/user/cxx.bin
15:52:50 – error – In file included from cxx_entry.cpp:16:
./main.cpp:71:12: error: type ‘vex::controller::button’ does not provide a call operator
if(Controller1.ButtonR1()){
^~~~~~~~~~~~~~~~~~~~
./main.cpp:75:17:
15:52:50 – error – error: type ‘vex::controller::button’ does not provide a call operator
else if(Controller1.ButtonR2()){

15:52:50 – info – make process failed with return code: 1
16:01:07 – info – changed directory: C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/sdk/user/
16:01:07 – info – C:/Users/Student/AppData/Local/VEX Coding Studio/VEX Coding Studio/sdk/user/
16:01:07 – error – In file included from cxx_entry.cpp:16:
./main.cpp:71:12: error: type ‘vex::controller::button’ does not provide a call operator
if(Controller1.ButtonR1()){
^~~~~~~~~~~~~~~~~~~~
./main.cpp:75:17:
16:01:07 – error – error: type ‘vex::controller::button’ does not provide a call operator
else if(Controller1.ButtonR2()){
^~~~~~~~~~~~~~~~~~~~
./main.cpp:85:12:
16:01:07 – error – error: type ‘vex::controller::button’ does not provide a call operator
if(Controller1.ButtonL1()){
^~~~~~~~~~~~~~~~~~~~
./main.cpp:88:17:
16:01:07 – error – error: type ‘vex::controller::button’ does not provide a call operator
else if(Controller1.ButtonL2()){
^~~~~~~~~~~~~~~~~~~~
./main.cpp:95:10:
16:01:07 – error – error: type ‘vex::controller::button’ does not provide a call operator
if(Controller1.ButtonUp()){
^~~~~~~~~~~~~~~~~~~~
./main.cpp:96:20:
16:01:07 – error – error: no matching member function for call to ‘spin’
Intake.spin(directionType::fwd,Intake, vex::velocityUnits::pct);
~^~
…/vexv5/include/vex_motor.h:168:23: note: candidate function not viable: no known conversion from ‘vex::motor’ to ‘double’ for 2nd argument
void spin( directionType dir, double velocity, velocityUnits units );
^
…/vexv5/include/vex_motor.h:170:23: note: candidate function not viable: no known conversion from ‘vex::motor’ to ‘double’ for 2nd argument
void spin( directionType dir, double velocity, percentUnits units ){
^
…/vexv5/include/vex_motor.h:157:23: note: candidate function not viable: requires single argument ‘dir’, but 3 arguments were provided
void spin( directionType dir );
^
16:01:07 – error – In file included from cxx_entry.cpp:16:
./main.cpp:98:17: error: type ‘vex::controller::button’ does not provide a call operator
else if(Controller1.ButtonDown()){
^
~~~~~~~~~~~~~~~~~
./main.cpp:99:20:
16:01:07 – error – error: no matching member function for call to ‘spin’
Intake.spin(directionType::rev,Intake, vex::velocityUnits::pct);
~~~~~^~
…/vexv5/include/vex_motor.h:168:23: note: candidate function not viable: no known conversion from ‘vex::motor’ to ‘double’ for 2nd argument
void spin( directionType dir, double velocity, velocityUnits units );
^
…/vexv5/include/vex_motor.h:170:23: note: candidate function not viable: no known conversion from ‘vex::motor’ to ‘double’ for 2nd argument
void spin( directionType dir, double velocity, percentUnits units ){
^
…/vexv5/include/vex_motor.h:157:23: note: candidate function not viable: requires single argument ‘dir’, but 3 arguments were provided
void spin( directionType dir );

16:01:07 – info – make process failed with return code: 1

It would help a lot to actually see the code.

The controller button bit is easier to address. The code is


if(Controller1.ButtonA.pressing())

Note the “.pressing” between the button and the parentheses.

It looks like you’ve both called a motor “Intake” and also called a value you’re feeding to it “Intake”? You shouldn’t be giving the same name to different things.

Probably more. Again, more than a photo of a tiny segment of code would be handy.