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.
Dependents: MastarNode_AR MastarNode_AR InterfaceNode AR_MastarNode_copy
Diff: Mycan.cpp
- Revision:
- 1:e632e292a8c2
- Parent:
- 0:ce8efac4c651
- Child:
- 2:67a12201e80b
--- a/Mycan.cpp Tue Jul 03 08:54:47 2018 +0000
+++ b/Mycan.cpp Wed Jul 04 07:49:29 2018 +0000
@@ -12,7 +12,7 @@
td_num = _num;
data = _data;
write_val[td_num] = data;
- express_absoluteValue();//絶対値にする関数
+ _expressAbsoluteValue();//絶対値にする関数
}
void Mycan::send()
@@ -25,7 +25,7 @@
CANMessage received;
can.read(received);
rd_data = *(read_can *)received.data;
- express_signVal(received.id);//符号を付与する関数
+ _expressSignVal(received.id);//符号を付与する関数
}
float Mycan::get(unsigned int _id, int _num)
@@ -35,7 +35,7 @@
return read_val[rd_id - min_id][rd_num];
}
-void Mycan::express_absoluteValue()
+void Mycan::_expressAbsoluteValue()
{
for (int i = 1; i < 8; i++)
{
@@ -54,7 +54,7 @@
td_data.writeVal_7 = abs(write_val[7]);
}
-void Mycan::express_signVal(unsigned int id)
+void Mycan::_expressSignVal(unsigned int id)
{
read_val[id - min_id][0] = rd_data.readVal_0;
read_val[id - min_id][1] = rd_data.readVal_1;