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.
Diff: main.cpp
- Revision:
- 13:e465ee0ccafb
- Parent:
- 12:6db54df00e14
- Child:
- 14:ac60009841bd
--- a/main.cpp Wed May 15 10:50:56 2019 +0000
+++ b/main.cpp Thu May 16 05:08:40 2019 +0000
@@ -149,10 +149,10 @@
teta1 = teta1_rad*180/pi; //dalam derajat
//--------mulai proses teta2--------
- if((xt>0)&&(yt>0)){
+ if((xt>0)&&(zt>0)){
float teta2_rad = rum2_tet(teta1_rad,xt,yt,zt,r1,r2)-teta1_rad;
teta2 = teta2_rad*180/pi;
- }else if((xt>0)&&(yt<0)){
+ }else if((xt>0)&&(zt<0)){
float teta2_rad = teta1_rad-rum1_tet(teta1_rad,xt,yt,zt,r1,r2);
teta2 = teta2_rad*180/pi;
}