View unanswered posts | View active topics It is currently Sat Mar 28, 2015 11:10 pm

 Page 1 of 1 [ 5 posts ]
 Print view Previous topic | Next topic
NOR gate for RobotC
Author Message
Rookie

Joined: Wed Aug 14, 2013 8:49 pm
Posts: 2
NOR gate for RobotC
Does robotc have an implementation of the NOR or NAND or NOT logic gates?

Thanks!

-JTech452

Wed Aug 14, 2013 9:02 pm
Senior Roboticist

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Re: NOR gate for RobotC
How so? As in an if(){} statement?

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.

Wed Aug 14, 2013 9:08 pm
Professor

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Re: NOR gate for RobotC
!=

Edit: See what I did there?

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!

Wed Aug 14, 2013 9:19 pm
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Re: NOR gate for RobotC
 Code:z = (!(x || y)) // z = x NOR yz = (!(x && y)) // z = x NAND yz = (!(x)) // z = NOT x

_________________
Matt

Wed Aug 14, 2013 10:18 pm
Rookie

Joined: Wed Aug 14, 2013 8:49 pm
Posts: 2
Re: NOR gate for RobotC
@mattalelen37 Thanks! That answers it.

@NeXT Generation Yes, in an if statement. Specifically referring to detecting if neither of two buttons are pressed on the joypad controller)

@Ernest3.14 No, I have no Idea what you did there.

Mon Aug 19, 2013 4:14 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 5 posts ]

#### Who is online

Users browsing this forum: CARBOT and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    2015 Spring Carnival Event    2014 Robotics Academy Summer of Learning    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions    Robotics Merit Badge Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.