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: OmniMove.cpp
- Revision:
- 4:4d94b6148a0a
- Parent:
- 3:e08a0ee65f69
- Child:
- 5:333ed75dd3f1
diff -r e08a0ee65f69 -r 4d94b6148a0a OmniMove.cpp
--- a/OmniMove.cpp Thu Mar 25 11:49:16 2021 +0000
+++ b/OmniMove.cpp Fri Mar 26 01:55:13 2021 +0000
@@ -53,9 +53,9 @@
Vroll = Vroll * roll_ratio;
}
-float OmniMove::output_(int nWheel){
+float OmniMove::output_(int n){
if( nWheel < 8 ){
- return Vx*Vx_wheel[nWheel] + Vy*Vy_wheel[nWheel] + Vroll;
+ return Vx*Vx_wheel[n] + Vy*Vy_wheel[n] + Vroll;
}else{
return 0;
}
@@ -78,9 +78,9 @@
}
float OmniMove::conv_deg(float _rad){
- return _rad * 180 / 3.141592;
+ return _rad * 180 / 3.14159265;
}
float OmniMove::conv_rad(float _deg){
- return 3.141592 * _deg / 180;
+ return 3.14159265 * _deg / 180;
}