I'm trying to build a ROS node for mecanum wheel based robot with PID.
therefore i need to calculate V * cos and V * sin
when i create an int for the V and a name for the outcome like so
int V = 140; int Vx = (V * sin); int Vy = (V * cos);
it compiles with this error
invalid operands of types 'int' and 'double(double)' to binary 'operator*'
I read some about it but but i can't find a good explanation of how to figure out witch integer to use.
any help would be highly appreciated