View Single Post
  #738  
Old 22-03-2017, 12:51 AM
luka's Avatar
luka
Unregistered User

luka is offline
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 1,164


Seriously annoyed by the ATmega compiler

Wasted over 6h today chasing compiler bugs. It cannot convert floating point to integer properly. For example:
Quote:
float x = 0.04*1000.0
equals 40.0 while
Quote:
float a = 0.04;
float x = a * 1000.0
equals 10.0
:bash comp:


Anyway, it should be working now, Gilles check the same spot on GD. There is also a skeleton c# program (cam86_PID_tuning) that I used for testing of the DLL and firmware for reading/setting of Kp.

Also is it possible to test if this firmware has the same cooling speed as the old one, 0.3L (default Kp = 0.04). Pat mentioned that it was slower. Even just timing one point after 1min should be enough if other parameters are the same.


Hold, on, I forgot:
:bash comp:



edit: And there are even bugs in the IIS computer bashing person
Reply With Quote