P.Copper
Member level 5
- Joined
- Mar 18, 2013
- Messages
- 82
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,807
Hi all,
can anyone please explain to me what does these 3 lines of code mean. thanks
V is output from ADC
can anyone please explain to me what does these 3 lines of code mean. thanks
Code:
for (i=0; i<75; i++)
V_peak = (V_peak > V) ? V_peak : V;
V_rms = 0.299*(V_peak - 825);
V is output from ADC
Last edited: