View Single Post
  #2   Spotlight this post!  
Unread 30-09-2015, 08:41
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Get/Set Refnum vs Global

The get/set refnum is what we refer to as a functional global. It stores data as a side-effect of its execution. It implements a name -> value lookup for some number of refnums of a given type.

Regular globals will work, but it will be more work to add one more sensor, one more motor, etc. With changes being made to the framework this year, it won't be as necessary to use either of these ... but that is for another day.

Greg McKaskle
Reply With Quote