Index: gui/app/app.h
===================================================================
--- gui/app/app.h	(revision 37121)
+++ gui/app/app.h	(working copy)
@@ -102,6 +102,7 @@
     itDLabel,
     itHPotmeter,
     itVPotmeter,
+    itRPotmeter,
     itPimage,
     itMenu,
     itPLMButton = 100,
@@ -132,6 +133,7 @@
     int pbwidth, pbheight;
     int numphases;
     float value;
+    double zeropoint, arclength;
 
     int message;
 
@@ -180,6 +182,7 @@
 guiItem *appFindItem(int event);
 int appFindMessage(const char *name);
 void appFreeStruct(void);
+double appRadian(guiItem *item, int x, int y);
 void btnModify(int event, float value);
 void btnSet(int event, int state);
 void btnValue(int event, float *value);
Index: gui/app/app.c
===================================================================
--- gui/app/app.c	(revision 37122)
+++ gui/app/app.c	(working copy)
@@ -21,6 +21,8 @@
  * @brief GUI application helpers
  */
 
+#include <math.h>
+
 #include "app.h"
 #include "gui.h"
 #include "gui/skin/font.h"
@@ -180,6 +182,27 @@
 }
 
 /**
+ * @brief
+ *
+ * @param item
+ * @param x
+ * @param y
+ *
+ * @return
+ *
+ * @note The return value is a @a clockwise radian.
+ */
+double appRadian(guiItem *item, int x, int y)
+{
+    double dx, dy;
+
+    dx = x - item->width / 2.0;
+    dy = y - item->height / 2.0;
+
+    return (dx == 0.0 && dy == 0.0 ? 0.0 : atan2(-dy, -dx) + M_PI);
+}
+
+/**
  * @brief Modify the value of the item belonging to an event.
  *
  * @param event event
Index: gui/ui/main.c
===================================================================
--- gui/ui/main.c	(revision 37122)
+++ gui/ui/main.c	(working copy)
@@ -95,6 +95,7 @@
  static int     itemtype = 0;
         int     i;
         guiItem * item = NULL;
+        double  point;
         float   value = 0.0f;
 
  static int     SelectedItem = -1;
@@ -138,7 +139,7 @@
           break;
    case wsRLMouseButton:
           boxMoved=False;
-          if ( SelectedItem != -1 )   // NOTE TO MYSELF: only if itButton, itHPotmeter or itVPotmeter
+          if ( SelectedItem != -1 )   // NOTE TO MYSELF: only if itButton, itHPotmeter, itVPotmeter or itRPotmeter
            {
             item=&guiApp.mainItems[SelectedItem];
             item->pressed=btnReleased;
@@ -154,6 +155,13 @@
             case itVPotmeter:
                  value=100.0 - 100.0 * ( Y - item->y ) / item->height;
                  break;
+            case itRPotmeter:
+                 point=appRadian( item, X - item->x, Y - item->y ) - item->zeropoint;
+                 if ( point < 0.0 ) point+=2*M_PI;
+                 if ( point <= item->arclength ) value=100.0 * point / item->arclength;
+                 else if ( point < item->arclength / 2.0 + M_PI ) value=100.0f;
+                 else value=0.0f;
+                 break;
            }
           uiEvent( item->message,value );
           itemtype=0;
@@ -170,7 +178,7 @@
           if (currentselected != - 1)
            {
             item=&guiApp.mainItems[currentselected];
-            if ( ( item->type == itHPotmeter )||( item->type == itVPotmeter ) )
+            if ( ( item->type == itHPotmeter )||( item->type == itVPotmeter )||( item->type == itRPotmeter ) )
              {
               item->value=constrain(item->value + value);
               uiEvent( item->message,item->value );
@@ -189,6 +197,13 @@
             case itPRMButton:
                  if (guiApp.menuIsPresent) guiApp.menuWindow.MouseHandler( 0,RX,RY,0,0 );
                  break;
+            case itRPotmeter:
+                 point=appRadian( item, X - item->x, Y - item->y ) - item->zeropoint;
+                 if ( point < 0.0 ) point+=2*M_PI;
+                 if ( point <= item->arclength ) value=100.0 * point / item->arclength;
+                 else if ( point < item->arclength / 2.0 + M_PI ) value=100.0f;
+                 else value=0.0f;
+                 goto potihandled;
             case itVPotmeter:
                  value=100.0 - 100.0 * ( Y - item->y ) / item->height;
                  goto potihandled;
