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: Tutorial04_dspic33fI2cCom Tutorial06_motorPositionControl
Diff: Encoder_dspic33f.cpp
- Revision:
- 4:bb36786e93b7
- Parent:
- 3:ad07e5b97132
- Child:
- 5:3eaf636e9a0f
diff -r ad07e5b97132 -r bb36786e93b7 Encoder_dspic33f.cpp
--- a/Encoder_dspic33f.cpp Tue Nov 05 12:40:27 2013 +0000
+++ b/Encoder_dspic33f.cpp Thu Jan 16 10:08:21 2014 +0000
@@ -30,25 +30,6 @@
i2c_.write( (address_<< 1) & 0xFE, dat, 3);
}
-void Encoder_dspic33f::set_resolution1(int16_t resolution){
- char cmd = 'e';
- char dat[4];
- dat[0] = cmd;
- dat[1] = '1';
- dat[2] = GetByte(resolution,0);
- dat[3] = GetByte(resolution,1);
- i2c_.write( (address_<< 1) & 0xFE, dat, 4);
-}
-
-void Encoder_dspic33f::set_resolution2(int16_t resolution){
- char cmd = 'e';
- char dat[4];
- dat[0] = cmd;
- dat[1] = '2';
- dat[2] = GetByte(resolution,0);
- dat[3] = GetByte(resolution,1);
- i2c_.write( (address_<< 1) & 0xFE, dat, 4);
-}
void Encoder_dspic33f::read(double * inarr){
char rx[8];
float data[2] = {0.0, 0.0};