Forums Forums General Discussions RFM3200-AER tag data calculation

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Greg Pitner 1 year, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1328

    Gatis
    Community Member
    • ★★★★

    Hello,

    Can you please explain more briefly your math calculations to calculate final temperature?

    Your formula is: 1/10[(TEMP2 – TEMP1)/(CODE2-CODE1)*(C-CODE1)+TEMP!-800] can you please explain what [ ] this do in math termins? Becouse i guess [ ] are same as () bet when i put your example data i have diferent result? Is [ ] like module or difernet math function. Can you write down some examples with C++ variables?

    Big tnx,

    Gatis.

    0
    #1329

    Greg Pitner
    RFMicron Team Member
    • ★★★★

    Hi Gatis,

    Yes, the bracket symbols [] are the same as the parentheses (). In C, you could write the expression like this:

    0.1*((temp2-temp1)/(code2-code1)*(c-code1)+temp1-800)

    0
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.