scottgchin / delta5_race_timer

Multi-node video transmitter race timer for drone racing
MIT License
159 stars 62 forks source link

Modify node to use freqMhzToRegVal() fn instead of table #63

Closed ethomas997 closed 6 years ago

ethomas997 commented 6 years ago

The 'delta5node' code WRITE_FREQUENCY command accepts a frequency-in-MHz value, so this adds the 'freqMhzToRegVal()' function to convert it directly to a register value for the module (instead of only supporting the frequency values in the table).

I've tested this mod in a Delta5 unit, and I've successfully used this 'freqMhzToRegVal()' function in my ArduVidRx and 'rx5808_etheli_diversity' projects.

--ET

ethomas997 commented 6 years ago

I did some testing on this PR with LiveTime; results look good. In LiveTime the nodes are setup using frequency-in-MHz values, so I think modification is a good match for that.

scottgchin commented 6 years ago

Just tested and merged. Nice job. This makes it much easier.