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.
Dependencies: SBDBT arrc_mbed BNO055
DUALSHOCKco.hpp
- Committer:
- kazumayamanaka
- Date:
- 2022-01-19
- Revision:
- 0:a1238c4cd105
File content as of revision 0:a1238c4cd105:
#ifndef DUALSHOCK_CO_H
#define DUALSHOCK_CO_H
#include "mbed.h"
#define RS_normal 64
#define RS_MAX 127
#define RL_MAX 255
class DUALSHOCKco{
public:
void pass_val(double RSX,double RSY,double R2AN,double L2AN);
bool cal_input();
double obt_X();
double obt_Y();
private:
double rsx,rsy,r2an,l2an;
double Xval,Yval;
};
#endif