The Wayback Machine - https://web.archive.org/web/20201111234105/https://github.com/purduesigbots/pros
Skip to content
develop
Go to file
Code

Latest commit

commit f8364d0
Merge: a19c090 74c385f
Author: Alex Brooke <[email protected]>
Date:   Tue Oct 27 22:26:05 2020 -0400

    Merge branch 'develop' into feature/optical-sensor

commit a19c090
Merge: 0da4047 5b0269c
Author: Kunwar Sahni <[email protected]>
Date:   Tue Oct 27 21:06:46 2020 -0400

    Merge remote-tracking branch 'purduesigbots/feature/optical-sensor' into feature/optical-sensor

commit 0da4047
Author: Kunwar Sahni <[email protected]>
Date:   Tue Oct 27 21:06:40 2020 -0400

    Remove comment

commit 5b0269c
Author: Kunwar Sahni <[email protected]>
Date:   Tue Oct 27 21:05:15 2020 -0400

    Update include/pros/optical.h

    Co-authored-by: Alex Brooke <[email protected]>

commit 1461d03
Author: Kunwar Sahni <[email protected]>
Date:   Tue Oct 27 21:01:30 2020 -0400

    Editing comments

commit 74c385f
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:18:57 2020 -0400

     Add Support for the Rotation Sensor (#258)

    * Finished header file for rotation sensor

    * Added untracked file

    * Started slightly with the rotation C file.

    * Finished up C file.

    * Finished cpp and hpp files, tested but didn't work. Also fixed wrong
    device type in C file.

    * Added untracked files:

    * Reverted main.cpp, added rotation hpp file to api header, fixed issues
    with C file not returning proper value. TODO: Revert Version Value

    * Properly Reverted main.cpp

    * Revert accidentally changed header for imu C file.

    * Documentation updates

    * Revert  Version

    * Revert PROS_VERSION_PATCH

    * corrected return values in documentation

    * change get reversed to int32_t so that the error can be returned

    * Finished documentation

    * Revert version

    * Update version

    * Update version

    * Update version

    * Change to virtual

    * Fixed documentation

    * Deleted extraneous newline

    * Fixed reverse(void) not working (earlier testing did not test it
    properly).

    * Rotation header documentation fixes

    * Rotation.hpp documentation fixes

    * Update rotation.h

    * Added reset position functions to the rotation-sensor

    * Fixed compilation error by reverting old change that wasn't cleanly
    taken out, changed reset_position in cpp to reflect the reset position
    in C.

    * Saved file properly

    * Added reverse functionality to C api.

    * Header documentation changes

    * Revert accidental change in CPP file

    * Revert version

    * Properly reverted version

    * Update version

    * Added new documentation on reset function

    * Added same reset documentation to C header

    * Update include/pros/rotation.h

    Co-authored-by: Alex Brooke <[email protected]>

    * Fixed documentation, removed periods, and used imperative tone.

    * Fix documentation for rotation_reset.

    * Capitalize Rotation Sensor

    Co-authored-by: WillXuCodes <Will Xu>
    Co-authored-by: mooreBrendan <[email protected]>
    Co-authored-by: Kunwar Sahni <[email protected]>
    Co-authored-by: Alex Brooke <[email protected]>

commit 355b567
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:17:16 2020 -0400

    Update include/pros/optical.hpp

    Co-authored-by: Alex Brooke <[email protected]>

commit 330e3fe
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:17:05 2020 -0400

    Update include/pros/optical.hpp

    Co-authored-by: Alex Brooke <[email protected]>

commit 55efaf4
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:16:43 2020 -0400

    Update include/pros/optical.hpp

    Co-authored-by: Alex Brooke <[email protected]>

commit 76758af
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:16:24 2020 -0400

    Update include/pros/optical.hpp

    Co-authored-by: Alex Brooke <[email protected]>

commit 95f5e81
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:16:14 2020 -0400

    Update include/pros/optical.h

    Co-authored-by: Alex Brooke <[email protected]>

commit c2425dc
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:15:44 2020 -0400

    Update include/pros/optical.h

    Co-authored-by: Alex Brooke <[email protected]>

commit fa281b4
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:14:35 2020 -0400

    Update include/pros/optical.h

    Co-authored-by: Alex Brooke <[email protected]>

commit 493f5d1
Author: Will Xu <[email protected]>
Date:   Tue Oct 27 20:14:25 2020 -0400

    Update include/pros/optical.h

    Co-authored-by: Alex Brooke <[email protected]>

commit a35f6a4
Author: mooreBrendan <[email protected]>
Date:   Thu Oct 22 00:16:44 2020 -0400

    fixed return value documentation

commit b8d64fb
Merge: 8ecc51e 5a66cee
Author: Kunwar Sahni <[email protected]>
Date:   Tue Oct 20 08:48:42 2020 -0400

    Merge pull request #257 from purduesigbots/feature/distance-sensor

     Add Support for the Distance Sensor

commit 5a66cee
Author: Kunwar Sahni <[email protected]>
Date:   Sun Oct 11 14:47:42 2020 -0400

    Change to virtual

commit 1c57877
Author: Kunwar Sahni <[email protected]>
Date:   Sun Oct 11 14:44:24 2020 -0400

    Change to virtual

commit 113abf9
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 9 17:22:03 2020 -0400

    Fix version

commit 7e44d38
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 9 17:17:12 2020 -0400

    Change err init

commit b1c5131
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 9 17:03:25 2020 -0400

    Change enum back

commit 0e277a0
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 9 16:59:10 2020 -0400

    Lowercase enum

commit 4b287c3
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 9 16:56:54 2020 -0400

    Formatting

commit ac9b3f0
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 9 16:22:12 2020 -0400

    Fix gesture disable

commit fed36f6
Author: Will Xu <[email protected]>
Date:   Fri Oct 9 11:26:03 2020 -0400

    Revert main.cpp

commit f0a8e09
Author: Will Xu <[email protected]>
Date:   Fri Oct 9 11:24:01 2020 -0400

    Revert Version

commit a60ce46
Author: Will Xu <[email protected]>
Date:   Fri Oct 9 00:59:15 2020 -0400

    Fixed up last of optical sensor errors by changing a function to the
    device sdk function.

commit d75c687
Author: Will Xu <[email protected]>
Date:   Thu Oct 8 03:49:08 2020 -0400

    Added new error system for optical sensor, cleaned up mutex related warnings by using
    claim_port instead of claim_port_i. (NOTE: I am aware this code may not compile, but I have no
    clue what I changed to make it stop compiling since a previous warning
    has now turned into an error for some reason :/)

commit 803bf93
Author: mooreBrendan <[email protected]>
Date:   Tue Oct 6 16:46:16 2020 -0400

    changed get_size to int32_t in c++

commit af6768b
Author: Kunwar Sahni <[email protected]>
Date:   Tue Oct 6 11:11:47 2020 -0400

    Remove new line

commit c46b794
Author: Kunwar Sahni <[email protected]>
Date:   Tue Oct 6 11:04:37 2020 -0400

    Apply suggestions from code review

    Co-authored-by: Alex Brooke <[email protected]>

commit d39dd99
Author: mooreBrendan <[email protected]>
Date:   Tue Oct 6 00:19:47 2020 -0400

    fixed int32_t library inclusion, and added std::

commit 7e94cfd
Author: Kunwar Sahni <[email protected]>
Date:   Sat Oct 3 17:59:53 2020 -0400

    Add confidence documentation

commit ee2e87f
Author: Kunwar Sahni <[email protected]>
Date:   Sat Oct 3 14:00:17 2020 -0400

    Change to device sdk function

commit db589a9
Merge: 6c91e5d ad938e5
Author: WillXuCodes <Will Xu>
Date:   Sat Oct 3 01:19:19 2020 -0400

    Merge branch 'feature/distance-sensor' of https://github.com/purduesigbots/pros into feature/distance-sensor

commit 6c91e5d
Author: WillXuCodes <Will Xu>
Date:   Sat Oct 3 01:14:10 2020 -0400

    Fixed bad macro and extraneous newline

commit ad938e5
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 2 19:52:04 2020 -0400

    Fix Formatting issues

commit bb2c816
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 2 19:45:30 2020 -0400

    Apply suggestions from code review

    Co-authored-by: Alex Brooke <[email protected]>

commit 3bc747e
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 2 19:44:54 2020 -0400

    Update include/pros/distance.h

    Co-authored-by: Alex Brooke <[email protected]>

commit 6684e6e
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 2 19:44:33 2020 -0400

    Update include/pros/distance.h

    Co-authored-by: Alex Brooke <[email protected]>

commit 7872b50
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 2 19:44:22 2020 -0400

    Update include/pros/distance.h

    Co-authored-by: Alex Brooke <[email protected]>

commit 19d032a
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 2 19:44:12 2020 -0400

    Update include/pros/distance.h

    Co-authored-by: Alex Brooke <[email protected]>

commit 050ec15
Author: Kunwar Sahni <[email protected]>
Date:   Fri Oct 2 18:12:33 2020 -0400

    Change to Device over index

commit 7ad19a2
Author: WillXuCodes <Will Xu>
Date:   Tue Sep 29 18:16:35 2020 -0400

    Saved file

commit cfd8e38
Author: WillXuCodes <Will Xu>
Date:   Tue Sep 29 18:15:11 2020 -0400

    Removed unnecessary using namespace pros::c from cpp file.

commit 7e73e49
Author: WillXuCodes <Will Xu>
Date:   Tue Sep 29 18:04:46 2020 -0400

    Added std:: to cpp files, and return types in the cpp files themselves.

commit 72b8016
Author: WillXuCodes <Will Xu>
Date:   Tue Sep 29 17:56:02 2020 -0400

    Added missing semi colon

commit 5fa435c
Author: WillXuCodes <Will Xu>
Date:   Tue Sep 29 17:50:08 2020 -0400

    Fixed error handling function

commit e2f474f
Author: WillXuCodes <Will Xu>
Date:   Tue Sep 29 17:35:00 2020 -0400

    Added optical sensor header files to api.h

commit b15afaf
Author: WillXuCodes <Will Xu>
Date:   Tue Sep 29 17:28:48 2020 -0400

    Added distance header files to api header.

commit bdef884
Author: WillXuCodes <Will Xu>
Date:   Fri Sep 25 23:08:04 2020 -0400

    Deleted unnecesary old comment regarding adding error handling

commit 27f3b98
Author: mooreBrendan <[email protected]>
Date:   Fri Sep 25 19:29:55 2020 -0400

    removed optical_ from c++ files

commit f4d8f53
Author: mooreBrendan <[email protected]>
Date:   Fri Sep 25 19:24:40 2020 -0400

    added the cpp file for the distance sensor and reverted main

commit 0868c74
Author: mooreBrendan <[email protected]>
Date:   Fri Sep 25 19:06:45 2020 -0400

    Added cpp file for optical sensor

commit 7f66e9f
Author: mooreBrendan <[email protected]>
Date:   Fri Sep 25 18:48:29 2020 -0400

    added optical hpp file

commit dda2bbf
Author: WillXuCodes <Will Xu>
Date:   Fri Sep 25 18:29:42 2020 -0400

    Added bad port or device error handling (Needs review)

commit 3e1b6cd
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 18:13:52 2020 -0400

    Add gesture_raw and enum

commit fd2a4e2
Merge: 0a3d5f9 bfc5a35
Author: WillXuCodes <Will Xu>
Date:   Fri Sep 25 18:11:31 2020 -0400

    Merge branch 'feature/distance-sensor' of https://github.com/purduesigbots/pros into feature/distance-sensor

commit 0a3d5f9
Author: WillXuCodes <Will Xu>
Date:   Fri Sep 25 18:00:00 2020 -0400

    Added distance sensor to device type enum, also started C file for
    distance sensor.

commit bfc5a35
Author: mooreBrendan <[email protected]>
Date:   Fri Sep 25 17:58:49 2020 -0400

    fixed the #ifndef in hpp file

commit a07f393
Author: mooreBrendan <[email protected]>
Date:   Fri Sep 25 17:55:20 2020 -0400

    added distance.hpp

commit 3f1fbc6
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 16:18:02 2020 -0400

    Fix void functions

commit b9bbeb9
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 16:03:23 2020 -0400

    Fix vdml_optical.c

commit 630b9bd
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 16:01:44 2020 -0400

    Add vdml_optical.c

commit 27ff3c1
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 14:59:35 2020 -0400

    Fix Comments and set_pwm

commit 198f161
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 14:54:05 2020 -0400

    Add Optical Header

commit 2ee04ea
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 11:40:51 2020 -0400

    Add get confidence

commit 0913f1a
Author: Kunwar Sahni <[email protected]>
Date:   Fri Sep 25 11:29:03 2020 -0400

    Add Distance Header
2b96b87

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PROS Kernel for the VEX V5 Brain

Build Status

What is PROS?

PROS is a lightweight and fast alternative open source operating system for the VEX V5 Brain. PROS is built with developers in mind and with a focus on providing an environment for industry-applicable experience.

Primary maintenance of PROS is done by students at Purdue University through Purdue ACM SIGBots. Inspiration for this project came from several computer science and engineering students itching to write code for the extended autonomous period. We created PROS to leverage this opportunity.

All PROS development is open sourced and available for the community to inspect. We believe that sharing source improves PROS through community contributions and allows students to learn by example.

PROS is built using the GCC toolchain and standard C/C++ practices (C11 & C++17 w/GNU extensions) to make the learning curve small. Structures, pointers, dynamic memory allocation, and function pointers are all available. Additionally, code is run on bare metal, allowing you to take full advantage of the microcontroller's power.

You can develop code on Windows, OS X, or Linux. Code is compiled using GCC and the PROS CLI is available on most operating systems. The PROS development team makes distributions for Windows, OS X, and Debian-based Linux distributions.

The PROS team develops a plugin for Atom to making developing projects in PROS the best possible experience. The highly customizable editor designed for the 21st century enables students to learn how to code in a modern environment.

What's the difference between PROS 2 and PROS 3?

PROS 2 refers to the kernel that runs on the VEX Arm Cortex-based Microcontroller. The source for this kernel is still available on the cortex-master branch. The future development for this version of the PROS kernel will be focused on maintenance and critical bugfixes.

PROS 3 refers to the kernel that runs on the VEX V5 microcontroller platform. The majority of our development focus will be on this version of the PROS kernel.

Does PROS support C++?

  • PROS 3.x (V5) officially supports C++. We're still working on enabling all of the features of C++ (particularly in the I/O area).
  • PROS 2.x (Cortex) does not officially support C++. Some users have found ways around this, but be warned: we will not be able to help if you run into issues doing this.

Cool, how do I get it?

Pay a visit to our website, pros.cs.purdue.edu, to download our latest installer or view installation instructions for your preferred platform.

How do I use it?

We have a number of resources available on our website, including

I still have questions!

Drop us a line

I think I found a bug!

We maintain GitHub repositories for the three major components of the PROS ecosystem:

If you find a problem with our documentation or tutorials, we have a repository for that, too, at purduesigbots/pros-docs.

Hey! Why can't I build the PROS 3 kernel?

The PROS 3 kernel depends on VEX's proprietary Software Development Kit (SDK), which is not publicly available.

You can’t perform that action at this time.