Rev 797 | Rev 840 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 797 | Rev 811 | ||
|---|---|---|---|
| Line 104... | Line 104... | ||
| 104 | 104 | ||
| 105 | if (subzero) { |
105 | if (subzero) { |
| 106 | txMsg.Data.bytes[0] = -cel-1; |
106 | txMsg.Data.bytes[0] = -cel-1; |
| 107 | txMsg.Data.bytes[1] = ~(cel_frac_bits<<4); |
107 | txMsg.Data.bytes[1] = ~(cel_frac_bits<<4); |
| 108 | }else{ |
108 | }else{ |
| 109 | txMsg |
109 | // txMsg.Data.bytes[0] = cel; |
| 110 | txMsg |
110 | // txMsg.Data.bytes[1] = (cel_frac_bits<<4); |
| - | 111 | txMsg.Data.words[0] = (cel<<4 | cel_frac_bits); //Sends temperature compatible with our CAN standard. |
|
| - | 112 | ||
| 111 | } |
113 | } |
| 112 | } |
114 | } |
| 113 | /* Delay */ |
115 | /* Delay */ |
| 114 | timeStamp_DS_del = Timebase_CurrentTime(); |
116 | timeStamp_DS_del = Timebase_CurrentTime(); |
| 115 | while(Timebase_PassedTimeMillis(timeStamp_DS_del) < DS_SEND_DELAY){} |
117 | while(Timebase_PassedTimeMillis(timeStamp_DS_del) < DS_SEND_DELAY){} |