Niet van mijzelf
Dependencies: USBHost USBHostXpad mbed-rtos mbed
Fork of x4180_Tank by
utils.cpp@0:79485480cd7e, 2014-11-13 (annotated)
- Committer:
- hotwheelharry
- Date:
- Thu Nov 13 23:20:02 2014 +0000
- Revision:
- 0:79485480cd7e
- Child:
- 3:c1620db50a75
first commit - compile ok;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hotwheelharry | 0:79485480cd7e | 1 | #include "utils.h" |
hotwheelharry | 0:79485480cd7e | 2 | |
hotwheelharry | 0:79485480cd7e | 3 | double ghettoFloor(double d){ |
hotwheelharry | 0:79485480cd7e | 4 | return double((long long)d); |
hotwheelharry | 0:79485480cd7e | 5 | } |
hotwheelharry | 0:79485480cd7e | 6 | double round(double d) |
hotwheelharry | 0:79485480cd7e | 7 | { |
hotwheelharry | 0:79485480cd7e | 8 | return ghettoFloor(d + 0.5); |
hotwheelharry | 0:79485480cd7e | 9 | } |