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.
Fork of compute by
Revision 10:546ff4637306, committed 2015-11-03
- Comitter:
- AeroKev
- Date:
- Tue Nov 03 10:15:30 2015 +0000
- Parent:
- 9:10f360732eb0
- Commit message:
- Last Commit
Changed in this revision
| compute.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 10f360732eb0 -r 546ff4637306 compute.cpp
--- a/compute.cpp Fri Oct 30 10:41:17 2015 +0000
+++ b/compute.cpp Tue Nov 03 10:15:30 2015 +0000
@@ -1,8 +1,4 @@
-#include <iostream>
#include <math.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <fstream>
#include "mbed.h"
#include "compute.h"
@@ -16,10 +12,6 @@
const int By = 0;
const double upper_arm_lim = 170*(M_PI/180);
const double lower_arm_lim = 0;
-ofstream info_stream;
-
-Serial pc4(USBTX,USBRX);
-
double calcGamma(double ApBp) {
return acos(((pow(ApBp,2))/(2*l*ApBp)));
