Yep! The programatic solution would be:
int x = 2;
int inverted = 0;
inverted = (~ x ) + 1;
The tilda (~) does a bitwise inversion. Also note that you can't declare the variable to be an unsigned as that will trip you up as well.
Yep! The programatic solution would be:
int x = 2;
int inverted = 0;
inverted = (~ x ) + 1;
The tilda (~) does a bitwise inversion. Also note that you can't declare the variable to be an unsigned as that will trip you up as well.
"If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
-Einstein
Don't be a HelpVampire
Hello,
I am trying to do the exact thing but i got confused by the RC receiver, I do not what is it.
can you please specify which one did you use?
just a check up, the RC receiver was used to connect your PC to the position controller, correct?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks