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: HbUserOpe.cpp
- Revision:
- 41:45c982b1c5b6
- Parent:
- 38:24ee50452755
- Child:
- 42:cc8501b824ba
--- a/HbUserOpe.cpp Mon Jan 21 06:32:24 2019 +0000
+++ b/HbUserOpe.cpp Mon Jan 21 11:57:35 2019 +0000
@@ -18,6 +18,9 @@
{
oldOpe = curOpe;
curOpe.w = fpgaGetUserSw();
+ if(gf_Print.d2.bf.sw){
+ sp.printf("SW : [%04X] ", curOpe.w);
+ }
return curOpe;
}
float HbUserOpe::GetAinAccelRaw()
@@ -40,9 +43,8 @@
}else{
ret = 0;
}
- if(gf_DbgPrint.bf.ana1 == true){
- sp.printf("Axl Rpm=%d val=%f\r\n",ret,AinAxlVal);
- gf_DbgPrint.bf.ana1 = false;
+ if(gf_Print.d2.bf.ain == true){
+ sp.printf("Axl Rpm=%d val=%f ",ret,AinAxlVal);
}
//sp.printf("Axl Rpm=%d val=%f\r\n",ret,anaval);
return ret;
@@ -60,9 +62,8 @@
AinTrtlVal = AinAxl.read();
//AinTrtlVal = AinThrottle.read();
ret = (INT16)(MAX_VAL_12BIT * AinTrtlVal);
- if(gf_DbgPrint.bf.ana2 == true){
- sp.printf("Trottle Val=%d analog val=%f\r\n",ret,AinTrtlVal);
- gf_DbgPrint.bf.ana2 = false;
+ if(gf_Print.d2.bf.ain == true){
+ sp.printf("Trottle Val=%d analog val=%f ",ret,AinTrtlVal);
}
return ret;
}