teslaworksumn / HeadMaster

DMX parsing and I2C output for the master Animatronic Heads controller
MIT License
2 stars 0 forks source link

Add call to mapDmxToServo in main #37

Closed kevana closed 11 years ago

kevana commented 11 years ago

Addresses #26

taylortrimble commented 11 years ago

Just for the record, if we do decide to use interrupt driven DMX in the future this isn't interrupt safe and we'll need a copy for mucking with. It would be a mistake to include it now however, because we don't need it and it would reduce performance.

kevana commented 11 years ago

I must've missed something, I didn't see anything already in master for it.

taylortrimble commented 11 years ago

I was talking about using ReadStartChannel or whatever we called it in combination with NUMBER_OF_SLAVES AND BYTES_PER_SLAVE to calculate a pointer offset and smaller buffer size.

kevana commented 11 years ago

Ah, yes. Could just use dmxbytesreceived - dmxstartchannel for the array offset On Nov 23, 2012 11:03 AM, "Taylor Trimble" notifications@github.com wrote:

I was talking about using ReadStartChannel or whatever we called it in combination with NUMBER_OF_SLAVES AND BYTES_PER_SLAVE to calculate a pointer offset and smaller buffer size.

— Reply to this email directly or view it on GitHubhttps://github.com/teslaworksumn/HeadMaster/pull/37#issuecomment-10665094.

taylortrimble commented 11 years ago

Ah, yes. Could just use dmxbytesreceived - dmxstartchannel for the array offset

I think this is for the wrong issue, I'll put it over there!