[GitHub] jacobrosenthal commented on issue #822: Adding int/float easing library

2018-03-06 Thread GitBox
jacobrosenthal commented on issue #822: Adding int/float easing library
URL: https://github.com/apache/mynewt-core/pull/822#issuecomment-371039772
 
 
   This could be merged as far as im concerned, but its mainly useful in 
relation to interrupt driven pwm so Im kinda waiting to see that resolve and 
know this is truly done.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] jacobrosenthal commented on issue #822: Adding int/float easing library

2018-02-22 Thread GitBox
jacobrosenthal commented on issue #822: Adding int/float easing library
URL: https://github.com/apache/mynewt-core/pull/822#issuecomment-367766045
 
 
   Altering pwm_test with
   ```
   #include 
   #define MAX_VALUE 65535
   #define MAX_STEPS 255
   
   static volatile int32_t step = 0;
   
   
   int32_t eased = cubic_int_out(step++, MAX_STEPS, MAX_VALUE);
   pwm_enable_duty_cycle(pwm, 0, eased);
   if(step>MAX_STEPS){
   step=0;
   }
   ```
   
   Linker can't find math library.
   ```
   Jacobs-MacBook-Air:charm jacobrosenthal$ newt run central-nrf52840pdk 0
   Compiling repos/apache-mynewt-core/apps/pwm_test/src/main.c
   Compiling repos/apache-mynewt-core/util/easing/src/easing.c
   Archiving apps_pwm_test.a
   Archiving util_easing.a
   Linking 
/Users/jacobrosenthal/Downloads/charm/bin/targets/central-nrf52840pdk/app/apps/pwm_test/pwm_test.elf
   Error: 
/Users/jacobrosenthal/Downloads/charm/bin/targets/central-nrf52840pdk/app/util/easing/util_easing.a(easing.o):
 In function `cubic_out':
   
/Users/jacobrosenthal/Downloads/charm/repos/apache-mynewt-core/util/easing/src/easing.c:105:
 undefined reference to `pow'
   collect2: error: ld returned 1 exit status
   
   ```
   
   Some other newt flag you're using?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services