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
Diff: common.h
- Revision:
- 0:72dfed48bbcd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common.h Thu Feb 27 02:15:35 2014 +0000 @@ -0,0 +1,6 @@ +#define toggle(a) {a=a^1;} + +//Convert from radians to degrees. +inline double toDegrees(double x) {return x * 57.2957795;} +//Convert from degrees to radians. +inline double toRadians(double x) {return x * 0.01745329252;} \ No newline at end of file