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: Encoder_dspic33f mbed
common.h@0:72dfed48bbcd, 2014-02-27 (annotated)
- Committer:
- shalab
- Date:
- Thu Feb 27 02:15:35 2014 +0000
- Revision:
- 0:72dfed48bbcd
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shalab | 0:72dfed48bbcd | 1 | #define toggle(a) {a=a^1;} |
shalab | 0:72dfed48bbcd | 2 | |
shalab | 0:72dfed48bbcd | 3 | //Convert from radians to degrees. |
shalab | 0:72dfed48bbcd | 4 | inline double toDegrees(double x) {return x * 57.2957795;} |
shalab | 0:72dfed48bbcd | 5 | //Convert from degrees to radians. |
shalab | 0:72dfed48bbcd | 6 | inline double toRadians(double x) {return x * 0.01745329252;} |