board/servo/servo.c
/** Ardunio like map function. Re-maps a number from one range to another. That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc.*/
Ardunio like map function. Re-maps a number from one range to another. That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc.
Ardunio like map function . Re - maps a number from one range to another . That is a value of fromLow would get mapped to toLow a value of fromHigh to toHigh values in - between to values in - between etc .
signed long map(signed long angle, unsigned long in_min, unsigned long in_max, unsigned long out_min, unsigned long out_max) {
  static signed int value = 0;
  value = (angle - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
  return value;
}
signed long map ( signed long angle , unsigned long in_min , unsigned long in_max , unsigned long out_min , unsigned long out_max ) { static signed int value = 0 ; value = ( angle - in_min ) * ( out_max - out_min ) / ( in_max - in_min ) + out_min ; return value ; }
Ardunio like map function.
Ardunio like map function .