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.
Revision 13:e465ee0ccafb, committed 2019-05-16
- Comitter:
- andremanurung
- Date:
- Thu May 16 05:08:40 2019 +0000
- Parent:
- 12:6db54df00e14
- Commit message:
- Typo yt -> zt
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6db54df00e14 -r e465ee0ccafb main.cpp
--- 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;
}