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-20

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

1 answer
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

0 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