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: HbEngine.cpp
- Revision:
- 17:f9610f3cfa1b
- Child:
- 23:79e20be4bc5b
diff -r 05b9e44889f1 -r f9610f3cfa1b HbEngine.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/HbEngine.cpp Fri Nov 30 05:24:27 2018 +0000
@@ -0,0 +1,21 @@
+#include "HbEngine.h"
+#include "fpga.h"
+//======================================================
+//コンストラクタ
+//======================================================
+HbEngine::HbEngine(UCHAR iID){
+ id = iID;
+}
+
+
+UINT16 HbEngine::getRpm(){
+ UINT16 rpm;
+ //エンジン回転数読み出し
+ rpm = fpgaGetRpm(true);//前
+ return rpm;
+}
+
+//アクセル設定
+void HbEngine::setAccell(UINT16 iVal){
+ fpgaEngine(id,iVal);
+}
\ No newline at end of file