Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mcp2515 mbed-dev-f303
math_ops/math_ops.h@0:d80c66cb1b3a, 2020-11-10 (annotated)
- Committer:
- panzhan
- Date:
- Tue Nov 10 09:09:58 2020 +0000
- Revision:
- 0:d80c66cb1b3a
panzhan_main_controller_copy2
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| panzhan | 0:d80c66cb1b3a | 1 | #ifndef MATH_OPS_H |
| panzhan | 0:d80c66cb1b3a | 2 | #define MATH_OPS_H |
| panzhan | 0:d80c66cb1b3a | 3 | |
| panzhan | 0:d80c66cb1b3a | 4 | #define PI 3.14159265359f |
| panzhan | 0:d80c66cb1b3a | 5 | |
| panzhan | 0:d80c66cb1b3a | 6 | #include "math.h" |
| panzhan | 0:d80c66cb1b3a | 7 | |
| panzhan | 0:d80c66cb1b3a | 8 | float fmaxf(float x, float y); |
| panzhan | 0:d80c66cb1b3a | 9 | float fminf(float x, float y); |
| panzhan | 0:d80c66cb1b3a | 10 | float fmaxf3(float x, float y, float z); |
| panzhan | 0:d80c66cb1b3a | 11 | float fminf3(float x, float y, float z); |
| panzhan | 0:d80c66cb1b3a | 12 | void limit_norm(float *x, float *y, float limit); |
| panzhan | 0:d80c66cb1b3a | 13 | int float_to_uint(float x, float x_min, float x_max, int bits); |
| panzhan | 0:d80c66cb1b3a | 14 | float uint_to_float(int x_int, float x_min, float x_max, int bits); |
| panzhan | 0:d80c66cb1b3a | 15 | |
| panzhan | 0:d80c66cb1b3a | 16 | #endif |