0 answer
Published by

All the code and documentation for CrcLib (our Arduino library) can be found here!

Published on 2019-10-29

1 answer
Published by

Our school might not have any programmers that will be able to come the workshop therefore we might need some help. Like asked before, are there any other places we can visit at least online. If there is it will be very appreciated as well, it could help all teams so that we can overview of the information and not only receiving it once. Also just as a side note, for schools such as our (a high school) could it be possible to include definitions of the code, I saw that you put up code as a response to the another question and I, with others didn't understand what any of it was for. Please consider our request. 

-LTM Student 
Published on 2019-11-04

2 answers
Published by

I can't seem to get the post to show up. Not sure why.

EDIT:

I wanted to learn about the CRCLib so I wrote a piece of code to output the button values and the Joystick

Values. This is not beautiful, but it is functional.

You need to use the Tools->Serial Monitor to see the output. Arduino debugging is a pain. The output is ugly, scrolling continuously, but that is the way the serial communication works.

USB connect to the 9660, link the manette, run the serial monitor and you are off.

Code is at the bottom

-Chris

CodeBlock

#include <CrcLib.h>
using namespace Crc;
void setup()
{
    CrcLib::Initialize();
    //Not necessary
    Serial.begin(19200);
}
void loop()
{
    CrcLib::Update();
  unsigned char LjoyY = Crc::CrcLib::ReadAnalogChannel(ANALOG::LCHANY);
  unsigned char LjoyX = Crc::CrcLib::ReadAnalogChannel(ANALOG::LCHANX);
  unsigned char RjoyY = Crc::CrcLib::ReadAnalogChannel(ANALOG::RCHANY);
  unsigned char RjoyX = Crc::CrcLib::ReadAnalogChannel(ANALOG::RCHANX);
  bool selectButton = CrcLib::ReadDigitalChannel(BUTTON::SELECT);
  bool startButton = CrcLib::ReadDigitalChannel(BUTTON::START);
  bool L1Button = CrcLib::ReadDigitalChannel(BUTTON::L1);
  bool L2Button = CrcLib::ReadDigitalChannel(BUTTON::L2);
  bool L3Button = CrcLib::ReadDigitalChannel(BUTTON::L3);
  bool R1Button = CrcLib::ReadDigitalChannel(BUTTON::R1);
  bool R2Button = CrcLib::ReadDigitalChannel(BUTTON::R2);
  bool R3Button = CrcLib::ReadDigitalChannel(BUTTON::R3);
  bool upButton = CrcLib::ReadDigitalChannel(BUTTON::UP);
  bool rightButton = CrcLib::ReadDigitalChannel(BUTTON::RIGHT);
  bool downButton = CrcLib::ReadDigitalChannel(BUTTON::DOWN);
  bool leftButton = CrcLib::ReadDigitalChannel(BUTTON::LEFT);
  bool greenButton = CrcLib::ReadDigitalChannel(BUTTON::GREENONE);
  bool redButton = CrcLib::ReadDigitalChannel(BUTTON::REDTWO);
  bool blueButton = CrcLib::ReadDigitalChannel(BUTTON::BLUETHREE);
  bool pinkButton = CrcLib::ReadDigitalChannel(BUTTON::PINKFOUR);
  
   Serial.print(" L2-");Serial.print(L2Button); 
   Serial.print(" R2-");Serial.print(R2Button); 
   Serial.print(" L1-");Serial.print(L1Button); 
   Serial.print(" R1-");Serial.print(R1Button);
   Serial.print(" L3-");Serial.print(L3Button);  //no idea what button this is 
   Serial.print(" R3-");Serial.print(R3Button);  //no idea what button this is 
   Serial.print(" SEL-");Serial.print(selectButton); 
   Serial.print(" STAR-");Serial.print(startButton); 
   Serial.print(" up-");Serial.print(upButton); 
   Serial.print(" down-");Serial.print(downButton);
   Serial.print(" right-");Serial.print(rightButton); 
   Serial.print(" left-");Serial.print(leftButton);
   Serial.print(" G1-");Serial.print(greenButton); 
   Serial.print(" Re2-");Serial.print(redButton);
   Serial.print(" B3-");Serial.print(blueButton); 
   Serial.print(" P4-");Serial.print(pinkButton);
   Serial.print(" LJoy(");Serial.print(LjoyX); Serial.print(",");Serial.print(LjoyY); Serial.print(")");
   Serial.print(" RJoy(");Serial.print(RjoyX); Serial.print(",");Serial.print(RjoyY); Serial.print(")");
   Serial.println();   
}
EDIT:

Problem was the screenshot I was trying to include. Maybe I exceeded a maximum post size?

EDIT:

Please note that the serial communication rate is bumped to 19200 baud instead of the default 9600. You need to change the rate on the serial monitor to match or you will get output that looks like is is written in Cyrillic.

Published on 2019-11-09

2 answers
Published by

Hello, i was just wondering what the cool down time was on the arches as well as the tornado, as it didn't say on the rules document or the video.

Published on 2019-11-20

2 answers
Published by

Français:

Salut de l'autre bord!

On a appris qu'un livestream des ateliers du 2 décembre sera disponible sur Youtube, ceci est génial mais on aimerait savoir si le stream restera sur Youtube ou si une copie de le stream sera disponible quelque part d'autre? Le concerne est à cause du fait que le stream débutera pendant qu'on est tous encore en cours (14h30 [HNP] ou 17h30 [HNE] ).

Merci,

- Alex T.


English:

Hell from the other side!

We learned that a livestream of the workshops taking place this December 2 will be available on Youtube, this is great but we would like to know if the stream will stay on Youtube or if a copy of the stream will be available somewhere else? The concern is because the stream will start while we are still in class ( 2:30 pm [PST] or 5:30pm [EST]).

Thanks,

-Alex T.

Published on 2019-11-21

1 answer
Published by
Français:

Salut Encore!

Est-ce que les cylindres hydrauliques inclus avec un actionneurs sont acceptables? Le livret des règles adresse les pneumatiques, mais pas les hydrauliques.

Si les cylindres hydrauliques et/ou d'autres hydrauliques sont permises auront-il des restrictions / des règles et des directives qu'il va falloir suivre?

- Alex T.

English:

Hello again!

Are hydraulic cylinders that included actuators legal for the competition? The rule book only addresses pneumatics and includes no mention of hydraulics.

If hydraulic cylinders and/or other types of hydraulics are permitted will there be restrictions/ rules and specifications we must adhere to?

- Alex T.
Published on 2019-11-25

1 answer
Published by

Is the CTF very time sensitive? As in, will we need someone logging in at midnight or will we have some time to do the challenge?

Marc Scattolin

Published on 2019-11-27

1 answer
Published by

Good afternoon everyone,

We are having some problems with the code for the 9880. What we are trying to do is simply make an attached servo move to test the connection. However, as you can imagine, we were unsuccessful. Due to the wiki being incomplete, it wasn't the easiest task to figure out how to do that simple of a task. Anyways, anything wrong with the code? When I run it, the Arduino just makes a constant buzzer noise with no pattern, furthermore complicating the situation as the error we're experiencing is undocumented. In addition, is it possible to have a code snippet posted in order to achieve our goal? 

- Bogdan


Code made to run servo:

#include <CrcLib.h>

using namespace Crc;

#define  MOTOR CRC_PWM_5


void setup()

{

    CrcLib::Initialize();


    CrcLib::InitializePwmOutput(CRC_PWM_5);


    CrcLib::SetDigitalPinMode(CRC_DIG_4, OUTPUT);


    //Not necessary

    Serial.begin(9600);

}


void loop()

{

    CrcLib::SetPwmOutput(CRC_PWM_5, 50);

    delay(10000);

    //Not necessary

    unsigned int deltaMicros = CrcLib::GetDeltaTimeMicros();

    Serial.println(deltaMicros);

}


/*void Test(unsigned char pin, BUTTON button1, BUTTON button2){

  if(CrcLib::ReadDigitalChannel(button1) || CrcLib::ReadDigitalChannel(button2){

    CrcLib::SetDigitalOutput(pin, HIGH);

  }

  else{

    CrcLib::SetDigitalOutput(pin, LOW);

  }

} */

Published on 2019-11-27

2 answers
Published by

Français:

Salutations,

Quelle est la masse, la circonférence et le diamètre de la boule de démolition?

-Alex T.

English:

Salutations,

What is the mass, circumference and diameter of the demolition ball?

-Alex T.

Published on 2019-11-30

2 answers
Published by

Bonsoir,

Mon équipe et moi voulions savoir quand sera le lancement des défis de programmation...

Merci d'avance!

Samaya Anwar

Published on 2019-12-03

1 answer
Published by

Just wanted to give fair warning that the USB connector on our Arduino Mega wasn't properly soldered to the board. After only a few gentle plugs/unplugs our programmer pulled it off the board yesterday.

I've just ordered 2 replacements from RobotDyn. If it's within your means it might be worth obtaining a backup in case your board suffers from the same cold solder at a critical point. Here's the order link I used.

Published on 2019-12-04

1 answer
Published by

Hey,

I'm wondering if anyone would be willing to share their measurements for the arch.
Currently we know the top is 45.75" from the ground, and that the arch's horizontal diameter is 73".
I'm wondering if anyone knows how wide the flat section in the middle is, as the arch is not a perfect semi-circle.
Any info appreciated!

Published on 2019-12-04

3 answers
Published by

Hello.

I am a beginner programmer proficient in the ways of drag/drop EasyC. I took a look at the programming challenge, and suffice to say, I am lost, confused and scared. I was hoping the CRC (or anyone else) has any programs or resources they could share with us to help us get started.

Currently, our computers have Notepad++. 

I am also wondering about the nature of the challenge.
Will we be given a set of data or numbers to process?
Will our programs be submitted online? 
Is there a platform or tutorial system in the works? (or that I've missed?) 

Based off what was previously stated, I had thought that this challenge would be more beginner-friendly. Currently, I do not even know how to begin to face this challenge. 

Duncan BH

Published on 2019-12-17

1 answer
Published by

Pouvons-nous choisir le langage de programmation ?

Exemple python ?

Published on 2019-12-17

1 answer
Published by

Est-ce que le 'y' est conté comme une voyelle dans le problème car en français il y en as 6 (A,E,I,O,U,Y)

Published on 2019-12-17

1 answer
Published by

Bonjour,

Pouvons-nous utiliser Arduino IDE, Python ou d'autres programme, comme RobotC, lors des devoirs et de la compétition de programmation. 

Merci 

Published on 2019-12-19

1 answer
Published by

Bonjour, dans le problème 6: Lumière de réparation de la Station spatiale, vous avez mal traduit de l'anglais au français l'exemple de la deuxième ligne :

WORKING BROKEN BROKEN WORKING

"red green" traduit en français par "vert rouge".

EDIT:

Une autre erreur dans le Problème 7: Série de Palindrome.  Vous n'auriez pas dû traduire le mot "Madam" en français.  Cela change la sortie et l'Exemple de sortie n'a pas été modifié à False - 1.

Published on 2019-12-27

1 answer
Published by

Le fichier Prob07.txt contient un espace après "Madam ".  C'est espace, qui semble être un symbole accepté comme mentionné dans l'exemple : "$a3 à 3A$", changera probablement la sortie du programme.

Published on 2019-12-29

1 answer
Published by

Bonjours,

Nous nous demandons s'il était possible d'inclure votre video descriptive de la compétition Flip 2020 dans notre site web 

merci de votre temps 

Published on 2020-01-03

1 answer
Published by

Is it acceptable to write a program with a menu to chose between the different problems and just one main with the individual problems in their own cpp's? Repeating the same code to open, read, and close files is slightly unbearable to me... 

Published on 2020-01-05

1 answer
Published by

Hi, I would love to know if we are allowed to build parts using a 3D printer or a CNC machine and if there is a limit to what extent can we?

Published on 2020-01-06

1 answer
Published by
We are looking to purchase 4 motors: RobotZone 12V Heavy Duty Planetary Gear Motor 437rpm + Motor Mount E + D-Bore Hub. It is on the Live-RobotPart_Inventory. We are wondering if there is a specific website for the purchasing of these parts.
Published on 2020-01-06

2 answers
Published by

Quand nous changeons brusquement la direction (avant arrière, gauche avant, peu-importe) du joystick, l'arduino redémarre à chaque fois.  Si on regarde nos moteurs, on voit de la lumière dans le bobinage. Peut-on changer cela avec notre code et si oui, comment ?

Voici notre code:

#include <CrcLib.h>
en utilisant l'espace de noms Crc;

void setup() 
{

  CrcLib :: Initialize ();

  CrcLib :: InitializePwmOutput (CRC_PWM_5);
  CrcLib :: InitializePwmOutput (CRC_PWM_6);
  CrcLib :: InitializePwmOutput (CRC_PWM_9);
  CrcLib :: InitializePwmOutput (CRC_PWM_10);
  //Serial.println("Allo ");
}

boucle vide () 
{
  // mettez ici votre code principal, à exécuter de manière répétée:
  CrcLib :: Update (); 

  CrcLib :: MoveArcade (ANALOG :: LCHANY, ANALOG :: LCHANX, CRC_PWM_5, CRC_PWM_6, CRC_PWM_9, CRC_PWM_10);

}

EDIT:

Le code a été automatique traduit, c'est étrange.

Voici le lien vers les vidéos de la situation :

https://drive.google.com/file/d/1EicXWimK6HhYjv_xfDEDrHt7gvaG2-Ko/view?usp=sharing
https://drive.google.com/open?id=1F2Sd6n-BqqaRf-0_ILAmfz6ls2kNbWQN

EDIT:

Le code a été automatique traduit, c'est étrange.

Voici le lien vers les vidéos de la situation :

https://drive.google.com/file/d/1EicXWimK6HhYjv_xfDEDrHt7gvaG2-Ko/view?usp=sharing
https://drive.google.com/open?id=1F2Sd6n-BqqaRf-0_ILAmfz6ls2kNbWQN

EDIT:

Voici le lien du deuxième vidéo qui ne fonctionnait pas.
https://drive.google.com/file/d/1EicXWimK6HhYjv_xfDEDrHt7gvaG2-Ko/view?usp=sharing

EDIT:

Finalement le bon lien : 
https://drive.google.com/file/d/1F2Sd6n-BqqaRf-0_ILAmfz6ls2kNbWQN/view?usp=sharing

Published on 2020-01-07

2 answers
Published by

Bonjour, 


On a une série de petites informations qu'on aimerait avoir spécifié.


Premièrement, est-ce que les aimants sont permis? si oui, la balle de démolition est elle magnetique? est ce que la chaine/corde de la balle est magnétique? le chariot sur l'arc est t-il magnétique?


Deuxièmement, quel est le type de matériel pour la balle? pour la chaîne/ corde de la balle? quel est le type de matériel du chariot de l'arc?


Finalement, quel est le poids du chariot qui est sur l'arc?


Merci,


-Alex T.

Published on 2020-01-08

1 answer
Published by

Hey there!

What type of plugs are supplied to one(s) kiosk booth during the competition? Reason being is we have quite a few things we would like to have in our booth plugged in and would like to make sure that we won't overpower the grid. Does the booth get a 5-15R or 5-20R or L5-30R or L14-20R or etc type plug? Which one? Also does the feed handle 15 amps or 20 amps or 30 amps? If you don't know what these types of plugs are, here are links to pictures of them:

5-15R type plug

5-20R type plug

L5-30R type plug

L14-20R type plug

etc...

Thank you!





Published on 2020-01-09

1 answer
Published by

Howdy friends,

I'm looking here at the numerous videos from the past compétitions and very few of them actually highlight/explain the competition itself, CRC Robotics. 

This is, however, part of the criteria for this year's video, so do we have to include it?

Thanks!

Published on 2020-01-09

0 answer
Published by

Hello,

I noticed that the input file for challenge 10 starts with a number on its own on a line (3). Does that represent the number of test cases in the file? I ask because this isn't specified in the explanatory pdf.

Also, the sample output for question 9 seems to be missing some lines between "10-4=6" and  "2-2=0"

Marc Scattolin

Published on 2020-01-09

1 answer
Published by
Bonjour,

J'ai une question à propos de la programmation, mais ce n'est pas relié à la compétition de programmation et plus pour le robot. Cependant on ne programme pas en Arduino, donc CTF c'est peut être la meilleur place sur le forum pour poser la question.

Est ce que  PROS est compatible avec les cortex EDR qu'ils ont créé avant la V5 de Vex? Le site web de PROS parle beaucoup à propos de V5, mais ne mentionne pas les versions précédentes comme V4. De plus, quand on a essayé de compiler le code à l'école une erreur nous indiquer que le système était incapable de trouver le plugin V5, cependant notre cortex EDR était branché à l'ordinateur. J'aimerais juste avoir une confirmation qu'on peut utiliser PROS avec notre type de cortex et notre type de manette. Je demande ceci à cause du fait que quand j'ai dû programmer la manette les options se baser autour de la manette de la V5 et non la V4.

Published on 2020-01-10

1 answer
Published by

I'm a bit puzzled by the 2 following conflicting rules:

3.6.02 Extension Constraints
After a heat begins, robots can extend their dimensions over the initial size limit.

3.6.03 Moving Parts
Moving robot parts are allowed if they do not extend beyond the allowed dimensions and height limit at the beginning of and during a heat. (is this a typo, do you mean "end"?)

If we have an arm that extends beyond 91.44cm in a round, but can be positioned vertically @ the beginning/end of a round (so it's within the allowed build volume), is that legal?

Published on 2020-01-12

3 answers
Published by

The rulebook states that the score obtained in the preliminary challenge has no impact on the score in the final challenge. Besides preparing us for the final challenge, what is the purpose of the preliminary one?

In addition, the rulebook and kickoff presentation mention that it will be in the form of a CTF but the preliminary challenge does not seem to be one.

Marc Scattolin

Published on 2020-01-13

1 answer
Published by

Bonjour,

Dans une question précédente on a demandé des spécifications à propos de la balle de démolition. Une des spécifications a mentionné la taille de la balle: 25.4 x 25.4 x 34.3 cm. La balle est elle donc ovoïde et non sphérique?

Merci,

-Alex T.

Published on 2020-01-15

1 answer
Published by

Bonjour,

Nous aimerions savoir à qui/où envoyer les 10 problèmes de prog une fois terminés.

Merci. 

Published on 2020-01-16

1 answer
Published by

Bonjour,

À quoi servent les fichiers prob.in.txt si les variables de cas à tester sont déjà présents dans le document pdf?

Merci. 

Published on 2020-01-16

2 answers
Published by

Bonjour nous avons oublié la hauteur du centre du champignon par rapport au sol est ce que quel qu'un serait assez gentille pour nous le dire.

Published on 2020-01-16

0 answer
Published by

Salut tout le monde, 

si vous n'avez pas de budget pour les chandails thématiques, nous avons acheté une machine pour les faire nous même. Nous offrons nos services gratuitement la seule chose vous devez nous fournir vos chandails et le matériels pour faire les chandails (C'est -pas dispendieux environs 30$ pour toutes l'équipe appart les chandails et les chandails coutent environs entre 5 à 10$ chaques). Nous avons bien hâte de vous voir :D 


Hi everyone,

If you don't have enough budget for t-shirts, we bought a machine that allows us to do them ourselves. We would like to offer our services for free, you would only need to provide the material and t-shirts. The cost for the material is about 30$ for the whole team and the t-shirts are 5-10$ each. We are very excited to see you all at the competiton! :D

Alexandra R

Published on 2020-01-19

1 answer
Published by

Hello!
it's Duncan from Centennial again.
I was wondering what exactly must be submitted?

How much is wanted by the CRC? Is it only the .CPP file? (for those who've been using C++)

Thank you!
Duncan

Published on 2020-01-21

0 answer
Published by

Salut membres de la compétition robotique 2020!

Nous nous demandons s'il y a une équipe qui se porterait volontaire pour fabriquer nos murs et les peindre (c'est un peu difficile pour nous considérant que nous vivons de l'autre côté du pays). On vous remboursera à la compétition (ça ne devrait pas coûter plus que 200 dollars).

Matériaux :
• 2.7mm 4x8 Utility Plywood (9 planches) à votre HOME DEPOT local
• 2-inch x 4-inch x 8 ft. SPF Dimensional Lumber (3 par planche de plywood, donc 27 planches) à votre HOME DEPOT local
• Peinture blanche (gouache, pas cher)


Le plan sera en pièce jointe. Si vous avez plus de questions, contactez nous.

Merci beaucoup,
Équipe kiosque de Jules-Verne

Published on 2020-01-23

4 answers
Published by

Hello,

I've experienced an error with one of my motors, more specifically CRC_PWM_3. What I've set up is a custom Mechanum wheel movement setup (shows up as "Belise" in the code provided below). In short, I wanted to set up a 5th motor for a separate function which isn't correlated with the Mechanum movement. However, the same 

void Test(int MyPWM){}

works just fine in a separate tab. Anything I did wrong?

- Bogdan

#include <CrcLib.h>
using namespace Crc;

void setup() 
{

  CrcLib::Initialize();

  CrcLib::InitializePwmOutput (CRC_PWM_3); // multi-use motor
  CrcLib::InitializePwmOutput (CRC_PWM_5); // front left
  CrcLib::InitializePwmOutput (CRC_PWM_7); // back left
  CrcLib::InitializePwmOutput (CRC_PWM_9, true); // front right
  CrcLib::InitializePwmOutput (CRC_PWM_11); // back right
  CrcLib::SetDigitalPinMode(CRC_DIG_4, OUTPUT); // multi-use motor digital output

  Serial.begin(9600);  
}

void loop() 
{
  CrcLib::Update();
  //bool L2Button = CrcLib::ReadDigitalChannel(BUTTON::L2);
  unsigned char LjoyY = LjoyY = Crc::CrcLib::ReadAnalogChannel(ANALOG::LCHANY);
  unsigned char LjoyX = LjoyX = Crc::CrcLib::ReadAnalogChannel(ANALOG::LCHANX);
  unsigned char RjoyY = RjoyY = Crc::CrcLib::ReadAnalogChannel(ANALOG::RCHANY);
  unsigned char RjoyX = RjoyX = Crc::CrcLib::ReadAnalogChannel(ANALOG::RCHANX); 

  CrcLib::Belise (ANALOG :: LCHANY, ANALOG :: LCHANX, ANALOG::RCHANX, CRC_PWM_5, CRC_PWM_7, CRC_PWM_9, CRC_PWM_11);

  Test(8);
}

void Test(int MyPWM)
{
  if (CrcLib::ReadDigitalChannel(BUTTON::L2)) {
    CrcLib::SetDigitalOutput(CRC_DIG_4, HIGH);
    CrcLib::SetPwmOutput(CRC_PWM_3, 127);
    bool L2Button = CrcLib::ReadDigitalChannel(BUTTON::L2);
    Serial.print(" L2-"); Serial.println(L2Button);
  }

    else {
    CrcLib::SetDigitalOutput(CRC_DIG_4, LOW);
    CrcLib::SetPwmOutput(CRC_PWM_3, 0);
    Serial.println("noButt");
  }
}
Published on 2020-01-25