ok i will complete the program i will tell you if i have any more problems
i finnised the program
but it still will not download
Could you post the error message.
When you say it does not download, did it compile, or is there a connection issue.
We download it and it is not dining what we tell it to
It does not say a error it says it is downloaded but when we run it it does not do what the codes says to do
The most likely case is that everything is working correctly and you have a bug in your code. What exactly isnât working, is it usercontrol or autonomous? Does it not do anything at all or does it do something, but that something is incorrect? Are the controls and motor ports set up correctly?
Also uploading your current code again would help, since I assume it change since this post.
it is autonomous when we download it to the brain and run it iy does the old v5 text autonomous#include âmain.hâ
pros::Controller c(pros::E_CONTROLLER_MASTER);
pros::Motor DriveL(6);
pros::Motor DriveR(7);
pros::Motor IntakeL(1);
pros::Motor IntakeR(3);
pros::Motor Placer(5);
void set Drive(int l, int r)
{
DriveL.move(l);
DriveR.move(-r);
}
void set Intake(int p)
{
IntakeL.move§;
IntakeR.move(-p);
}
void set Placer(int p)
{
Placer.move§;
}
void initialize() {
}
void disabled() {}
void competition initialize() {}
void autonomous() {
set Intake(1000)
pros::delay(1000);
set Drive(127,127);
pros::delay(1000);
set Drive(127,127);
set Drive(0,0);
}
void op control() {
int x,y;
while (true) {
x = abs(c.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y)) > 5 ? c.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y) : 0;
y = abs(c.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_X)) > 5 ? c.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_X) : 0;
set Drive(y+x,x-y);
if(c.get_digital(pros::E_CONTROLLER_DIGITAL_L2))
set Intake(127);
else if(c.get_digital(pros::E_CONTROLLER_DIGITAL_L1))
set Intake(-127);
else
set Intake(0);
if(c.get_digital(pros::E_CONTROLLER_DIGITAL_UP))
set Placer(127);
else if(c.get_digital(pros::E_CONTROLLER_DIGITAL_DOWN))
set Placer(-127);
else
set Placer(0);
pros::delay(20);
}
}
First please use ``` before and after your code to tell vex forum to display it as code.
Second you still havenât rename the function since function names cannot have spaces and yours do.
This means your code doesnât compile and so when your upload it re-uploadeds the old code.
-
Git
-
GitHub
Initialize a new project directory with a Git repository
Create repository
190
2148A69:2
LFUTF-8Plain Text
GitHubGit (0)
this is what it is saying
That⌠is not a compilation error. Iâm not super-experienced with the PROS editor but that appears to be some menu text.
I suggest you implement the fix @Codec and I have pointed out (remove spaces from function names) and try to recompile the code, then post the error text you get (if any).
we got ride of the spaces and i dont know if it is compiled or not
What does it say when you hit compile?
there is no compile button
Sorry I keep forgetting, in pros the button is labeled build. The red circle shows the build button.
ok
thank you for that
ok the pros was not working so i swiched back to v5 text and it says this when i download it
make process closed with exit code : 2
That just means âyour code has errorsâ.
For more details about which errors, scroll up in the âoutputâ tab, there will be more text that details what your errors are. Red-colored text is particularly important.
Weâd be happy to help you debug your program, but that would require seeing it. Please copy and paste your entire program into a reply (remember to add ```
before and after for formatting), as well as the entire contents of the âproblemsâ tab when you try to compile the program.
[info]: Saving Project âŚ
[info]: Project saved!
windows build for platform vexv5
details
vex/mkrules.mk:23: warning: overriding recipe for target âbuild/2148Aâ
vex/mkrules.mk:17: warning: ignoring old recipe for target âbuild/2148Aâ
vex/mkrules.mk:23: warning: overriding recipe for target âwithâ
vex/mkrules.mk:17: warning: ignoring old recipe for target âwithâ
vex/mkrules.mk:27: warning: overriding recipe for target âwithâ
vex/mkrules.mk:23: warning: ignoring old recipe for target âwithâ
make: Circular build/2148A <- build/2148A dependency dropped.
make: Circular with <- build/2148A dependency dropped.
make: Circular with <- with dependency dropped.
Usage: arm-none-eabi-objcopy [option(s)] in-file [out-file]
Copies a binary file, possibly transforming it in the process
The options are:
-I --input-target Assume input file is in format
-O --output-target Create an output file in format
-B --binary-architecture Set output arch, when input is arch-less
-F --target Set both input and output format to
âdebugging Convert debugging information, if possible
-p --preserve-dates Copy modified/access timestamps to the output
-D --enable-deterministic-archives
Produce deterministic output when stripping archives
-U --disable-deterministic-archives
Disable -D behavior (default)
-j --only-section Only copy section into the output
âadd-gnu-debuglink= Add section .gnu_debuglink linking to
-R --remove-section Remove section from the output
-S --strip-all Remove all symbol and relocation information
-g --strip-debug Remove all debugging symbols & sections
âstrip-dwo Remove all DWO sections
âstrip-unneeded Remove all symbols not needed by relocations
-N --strip-symbol Do not copy symbol
âstrip-unneeded-symbol
Do not copy symbol unless needed by
relocations
âonly-keep-debug Strip everything but the debug information
âextract-dwo Copy only DWO sections
âextract-symbol Remove section contents but keep symbols
-K --keep-symbol Do not strip symbol
âkeep-file-symbols Do not strip file symbol(s)
âlocalize-hidden Turn all ELF hidden symbols into locals
-L --localize-symbol Force symbol to be marked as a local
âglobalize-symbol Force symbol to be marked as a global
-G --keep-global-symbol Localize all symbols except
-W --weaken-symbol Force symbol to be marked as a weak
âweaken Force all global symbols to be marked as weak
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-i --interleave [] Only copy N out of every bytes
âinterleave-width Set N for --interleave
-b --byte Select byte in every interleaved block
âgap-fill Fill gaps between sections with
âpad-to Pad the last section up to address
âset-start Set the start address to
{âchange-start|âadjust-start}
Add to the start address
{âchange-addresses|âadjust-vma}
Add to LMA, VMA and start addresses
{âchange-section-address|âadjust-section-vma} {=|+|-}
Change LMA and VMA of section by
âchange-section-lma {=|+|-}
Change the LMA of section by
âchange-section-vma {=|+|-}
Change the VMA of section by
{â[no-]change-warnings|â[no-]adjust-warnings}
Warn if a named section does not exist
âset-section-flags =
Set section 's properties to
âadd-section = Add section found in to output
ârename-section =[,] Rename section to
âlong-section-names {enable|disable|keep}
Handle long section names in Coff objects.
âchange-leading-char Force output formatâs leading character style
âremove-leading-char Remove leading character from global symbols
âreverse-bytes= Reverse bytes at a time, in output sections with content
âredefine-sym = Redefine symbol name to
âredefine-syms --redefine-sym for all symbol pairs
listed in
âsrec-len Restrict the length of generated Srecords
âsrec-forceS3 Restrict the type of generated Srecords to S3
âstrip-symbols -N for all symbols listed in
âstrip-unneeded-symbols
âstrip-unneeded-symbol for all symbols listed
in
âkeep-symbols -K for all symbols listed in
âlocalize-symbols -L for all symbols listed in
âglobalize-symbols --globalize-symbol for all in
âkeep-global-symbols -G for all symbols listed in
âweaken-symbols -W for all symbols listed in
âalt-machine-code Use the targetâs 'th alternative machine
âwritable-text Mark the output text as writable
âreadonly-text Make the output text write protected
âpure Mark the output file as demand paged
âimpure Mark the output file as impure
âprefix-symbols Add to start of every symbol name
âprefix-sections Add to start of every section name
âprefix-alloc-sections
Add to start of every allocatable
section name
âfile-alignment Set PE file alignment to
âheap [,] Set PE reserve/commit heap to /
âimage-base Set PE image base to
âsection-alignment Set PE section alignment to
âstack [,] Set PE reserve/commit stack to /
âsubsystem [:]
Set PE subsystem to [& ]
âcompress-debug-sections Compress DWARF debug sections using zlib
âdecompress-debug-sections Decompress DWARF debug sections using zlib
-v --verbose List all object files modified
@ Read options from
-V --version Display this programâs version number
-h --help Display this output
âinfo List object formats & architectures supported
arm-none-eabi-objcopy: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
make: *** [vex/mkrules.mk:23: build/2148A] Error 1
[error]: make process closed with exit code : 2