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

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

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

3 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

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

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

1 answer
Published by

Bonjour! Est-ce que c'est possible de recevoir une copie de photo d'équipe?

Published on 2020-02-20

1 answer
Published by

Hello, 

First question:

In the rulebook, you guys mention how you will need to place the tennis ball through the ring to get the multiplier. At the end of the heat of 5 minutes, if we don't place the tennis ball through the ring do we still get x1 or x0? What would be the point to put the tennis ball through the ring between 3 to 5 minutes if it still counts as a x1?

Second question:

At the beginning of the heat, can we place the blocks however we want in the designated zones?


Thank you, Vanier

Published on 2020-11-04

1 answer
Published by

Hello,

I am the build captain for Vanier Build Team and we were wondering if it is allowed to use micro servos on the robot. they are continuous and powered by 5V batteries the same as the servos received in the kit. The detail of the specific type wasn't clear in the rules so we just wanted to make sure.

We were also wondering if it was allowed to construct the structure inside the robot and drop it in the construction zone after all the pieces were collected. 

Thank you very much in advance,

Jad Ashkar 

EDIT:

The reason we would like to use Micro Servos is that we have a low budget this year and are trying to save for other material we will use.

Published on 2020-11-16

1 answer
Published by

Bonjour!

Afin d'apprendre davantage sur le CrcDuino, nous venons de suivre votre tutoriel sur le "Switch limited motor". Par contre, alors que nous avions construit le même circuit, lorsque nous pesons sur l'interrupteur, au lieu de s'arrêter, le moteur ralentit. (Même chose avec le bouton poussoir, tout fonctionne, sauf le fait que le moteur ralentit au lieu de s'arrêter.)

Can you think of any precise task we are doing wrong? We are slightly confused, because we haven't changed a single line from your code in the tutorial article. If more details are needed, please let us know!
Published on 2020-11-17

4 answers
Published by

Bonjour,

Nous essayons de programmer un moteur encodé (Gobilda) qui fonctionnera avec un bouton-poussoir: lorsqu'il est appuyé, le moteur tournera, sinon, il restera immobile.

En ce moment, lorsque nous téléversons le code, le moteur tourne immédiatement, peu importe si le bouton est pesé ou non. En d'autres mots, peu importe le comportement du bouton, le moteur tourne toujours. Pour le code, nous avons modifié celui donné dans le tutoriel 1.  Nous avons utilisé un Victor SPX avec le moteur encodé. De plus, notre circuit est le même que celui du tutoriel 1: nous avons remplacé le filage menant vers le servo moteur au Victor SPX.

Voici notre code: 


#include <CrcLib.h>
#define MOTOR CRC_PWM_1
#define BOUTON CRC_DIG_1
using namespace Crc;
//-----------------------------------------------------------------
void setup() {
  CrcLib::Initialize(); //Set up CrcDuino
  
  CrcLib::InitializePwmOutput(MOTOR); //Set up motor
  CrcLib::SetDigitalPinMode(BOUTON, INPUT); //Set up the button
  
 }
//------------------------------------------------------------------
void loop() {
  CrcLib::Update(); //Refresh
  if((CrcLib::GetDigitalInput(BOUTON))== false)  //When the button is pressed
  {
      CrcLib::SetPwmOutput(MOTOR, 127);  //Full speed
  }
  else  //When the button is pressed
  {
      CrcLib::SetPwmOutput(MOTOR, 0);  // STOP
  }
}
//-------------------------------------------------------------------
EDIT:

edit: De plus, quand aurons-nous accès aux questionnaires de préparation à la compétition de programmation?

Published on 2020-11-20

1 answer
Published by

Hello,

Our team was talking about the theoretical ways that the heats can unfold and we came upon the realization that in the event of 2 robots being able to complete the task in under 1 minute,  the game could become a game of luck in the later rounds based on who uses which "cards" when. 

What will be done to circumvent the game from turning into a lucky tossup at that point?


EDIT:

-Jamie Savelson

Published on 2020-11-24

1 answer
Published by

Hello, we're trying to setup the board but it gives us a error sound and red LED, what do we do? Failure light on.

EDIT:

The fail light is on. This is the first time we plug it in.

Published on 2020-11-30

1 answer
Published by

Hi,

We were wondering how many heats would be played during each round, especially the preliminary round as it spans two days which means we could play up to 15-20 heats.

We are asking the question because we want to know how many playing cards we want to program as we can't replay the same card twice in a round. It doesn't need to be a precise number but a ballpark would be really helpful.

Thank you,

Nicolas D.

Published on 2020-12-24

1 answer
Published by

Hello,

Now that our team finally has the crcduino, I've started experimenting with it. I'm having a strange issue with it though; when I use CrcLib::GetDeltaTimeMicros in the loop it always seems to return the same value, although the value it returns is not the same run to run. Code is:

#include <CrcLib.h>

using namespace Crc;

void setup()
{
CrcLib::Initialize();
Serial.begin(9600);
}

void loop()
{
CrcLib::Update();
unsigned int deltaMicros = CrcLib::GetDeltaTimeMicros();
Serial.println(deltaMicros);
Serial.println("hello");
}

And the output on serial monitor is:

14560
hello
14560
hello
14560
hello
14560
hello
14560
hello
14564

etc, the number is always 14560.

I care about using this function because I want to use an ultrasonic sensor (HC-SR04, the type our team received last year(?)) without delay() or pulseIn().

EDIT:

edit: the arduino micros() function appears to work as expected. I'm using crclib 1.0.0

EDIT:

I realized I misunderstood what GetDeltaTimeMicros() does. This post can be deleted.

Published on 2020-12-29

3 answers
Published by

Hey, I have two questions about the game piece blocks.

1 - How many will be present for each of the heats? The rules video and rules book seems to mostly show 3 blocks being the max number being used, but I was wondering how many it can go up to being used simultaneously in a round.

2 - What will be the orientation of the blocks at the start of the round? Granted they are all in their appropriate boxes, can they be oriented as we wish? Having them stood upright or laying down can help with how much manipulation the robot will need to do.

Thanks for any help you guys can give!
- Adam Bede, JAC Robotics

Published on 2021-01-02

1 answer
Published by

Hello,

The rulebook mentions that the placement of the blocks can be outlined by adhesive tape in their respective zone. Is adhesive tape allowed anywhere else on the playing field?

EDIT:

I realize this is in the wrong section, but there seems to be no way for me to change this.

Published on 2021-01-04

0 answer
Published by

Hello, 

We have been trying to program a servo with the CRCDuino and we are using a very simple code. The code is compiling and is sending and no error lights are showing yet the servo isn't even turning. Here is our code: 

#include <CrcLib.h>

using namespace Crc;


void setup() {

  CrcLib::Initialize(); //Set up CrcDuino

  

  CrcLib::InitializePwmOutput(CRC_PWM_8); //Set up 

 }

 

void loop() {

  CrcLib::Update(); //Refresh

  CrcLib::SetPwmOutput(CRC_PWM_8, 127);

}

We tried every port combination yet nothing seems to work. We even tried 2 new servos that came in the kit and even that didn't work 

Published on 2021-01-17