Is it possible to remote control a 'robot' relative to the driver with an angle sensor (or any other sensor)? For example, if the robot starts in this position
--------------
| Front |
| -------- |
| |________| | [robot]
| Back |
--------------
and the joystick is in this configuration
--------------
| Forwards |
| [joystick] |
| Backwards |
--------------
then if the robot turns around,
--------------
| Back |
| -------- |
| |________| | [robot]
| Front |
--------------
pushing the controller forwards will still make the robot go forward
--------------
| ^ |
| [joystick] |
| Backwards |
--------------
--------------
| ^ |
| -------- |
| |________| | [robot]
| Front |
--------------
even though from the robot's POV, he's going backwards.
Any ideas/solutions?