Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include "math.h"
  2.  
  3. vALSstartReadChannel(0);
  4. uint16 ch0 = u16ALSreadChannelResult();
  5. vALSstartReadChannel(1);
  6. uint16 ch1 = u16ALSreadChannelResult();
  7. uint16 R = ch1/(ch0 - ch1);
  8. u8LightIntensity = (uint8) 0.39*(ch0-ch1)*(exp(0.181*R*R));
  9.  
  10. Intensity.o: In function _Intensity': Intensity.c:(.text.Intensity+0x3d): undefined reference to _exp'
  11. make: *** [/cygdrive/c/Users/Shagiea/workspace/ClimaCon-PIR-AQS- MOTOR/Binary/0x11111111s_DeviceBulb_DR1175_JN5148J01.elf] Error 1 ClimaCon-PIR-AQS-MOTOR line 0 C/C++ Problem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement