Thread
:
PID need someone to look it over.
View Single Post
#
10
31-01-2011, 06:45
Greg McKaskle
Registered User
FRC #2468 (Team NI & Appreciate)
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Re: PID need someone to look it over.
Ternary assignment in C/C++ looks like
y= a<0.3 ? 0 : a;
which is equivalent to
if(a < 0.3)
y= 0;
else
y= a;
In LV it looks like the attached image.
Greg McKaskle
Attached Images
Greg McKaskle
View Public Profile
Find all posts by Greg McKaskle
Find CD-Media Photos by Greg McKaskle
Find CD-Media Papers by Greg McKaskle