Advertisement
Guest User

Untitled

a guest
May 28th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. char *str = get_uart_string();
  2.  
  3. int parameterset;
  4.  
  5. float gain;
  6.  
  7. float coeff_a0;
  8. float coeff_a1;
  9. float coeff_a2;
  10.  
  11. float coeff_b1;
  12. float coeff_b2;
  13.  
  14. int result = sscanf(str, "P%i_%f_%f_%f_%f_%f_%f#", &parameterset, &gain, &coeff_a0, &coeff_a1, &coeff_a2, &coeff_b1, &coeff_b2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement