Skip to content

baconomist/Six-Robotics-Vex-Bot

Repository files navigation

Six-Robotics-Vex-Bot

How to code good

Docs & Code Quality

  • Use doc-string comments on each function
/**
* This is a doc string and should appear
* as a vibrant color in clion by default
*
* @param param_name what the param is for
* @returns what the function returns
**/
void foo();
  • Use namespaces instead of classes unless classes make absolute sense.
    Generally the codebase is supposed to be more c-like than c++ by containing more functions
    than classes. This is not to say classes are outlawed. Instead use them where appropriate.

Branches

  • Dev: Commit WIP code here
  • Master: Commit ONLY code which can be uploaded and used in comp here

Writing commits

NO ATOMIC COMMITS If you have many changes, instead of commiting them all at once, split the changes up into separate commits explaining the changes.

Example:

Added vision sensor cube alignment.

This is simple, to the point, and starts with an UPPERCASE. Almost as if someone who passed elementary school wrote it.

If you just have minor changes that fix many things:

Misc bug fixes.






Project Setup

Getting Clion Working:

  • Use mingw
  • This error message is ok: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../libmingw32.a(main.o):(.text.startup+0xb0): undefined reference to `WinMain@16'
  • Restart clion and refresh NOT rebuild cmake project

PROS INSTALLATION

####DO NOT COMMIT PROS LIB FILES

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published