HELP PROJECT DUE SHORTLY maestro coding

new to coding mini maestro and i was wondering if anyone sees anything wrong with my code i want it to look left and look right as a posed to the servos and I want it to just be no simulations sequence when the servos are not touched and the turn left and right when both sensors are touched but its not looking left at all please help me lol

0000:                      -- start:
0000: 818019               -- right_sensor left_sensor logical_and
0003: 070B008180060000     -- if right_sensor left_sensor  goto start endif
000B:                      -- 
000B: 8007130083060000     -- left_sensor if notice_left  goto start endif 
0013:                      -- 
0013: 81071B0084060000     -- right_sensor if notice_right  goto start endif
001B:                      -- 
001B: 82                   -- no_stimulation 
001C: 060000               -- goto start
001F:                      -- 
001F:                      -- sub left_sensor
001F: 02042E01000228       -- 4 get_position 512 less_than 
0026: 05                   -- return
0027:                      -- 
0027:                      -- sub right_sensor
0027: 02032E01000228       -- 3 get_position 512 less_than
002E: 05                   --  return
002F:                      -- 
002F:                      -- ### Sequence subroutines: ###
002F:                      -- 
002F:                      -- # no stimulation
002F:                      -- sub no_stimulation
002F: 030AF401000000009A17F01285 --   500 0 0 6042 4848 frame_0_1_4_5 # Frame 0
003C: 0304F401B41386       --   500 5044 frame_5 # Frame 1
0043: 0304F4013D1486       --   500 5181 frame_5 # Frame 2
004A: 0304F401AF1686       --   500 5807 frame_5 # Frame 3
0051: 0304F401291487       --   500 5161 frame_4 # Frame 4
0058: 0304F401961A87       --   500 6806 frame_4 # Frame 5
005F: 0304F401A01387       --   500 5024 frame_4 # Frame 6
0066: 0306F401911D161488   --   500 7569 5142 frame_4_5 # Frame 7
006F: 0304F401E51987       --   500 6629 frame_4 # Frame 8
0076: 0304F401441C87       --   500 7236 frame_4 # Frame 9
007D: 05                   --   return
007E:                      -- # notice left
007E:                      -- sub notice_left
007E: 030AF401000000001117000085 --   500 0 0 5905 0 frame_0_1_4_5 # Frame 0
008B: 0304F4013F1387       --   500 4927 frame_4 # Frame 1
0092: 0306F4011316A41188   --   500 5651 4516 frame_4_5 # Frame 4
009B: 0304F4018A1587       --   500 5514 frame_4 # Frame 5
00A2: 01F40108             --   500 delay # Frame 5
00A6: 01F40108             --   500 delay # Frame 5

It looks like you tried posting the compiled code from your Maestro, but part of it is missing. It would probably be a lot easier to troubleshoot if you could post your Maestro settings file instead. The settings file will allow us to see more details about how your Maestro is configured, along with your script. You can save your Maestro settings file by selecting the “Save settings file…” option from the “File” drop-down menu within the Maestro Control Center.

What behavior are you trying to get when both sensors report true? From the part of the script that you posted, it looks like when left_sensor and right_sensor report back true, your script reads both sensors again and then goes back to the “start” label. This means that each time the script cycles through and left_sensor and right_sensor are true, two values are added to the stack and never used, which will eventually result in a stack overflow error.

Brandon

Hi there so I resolved the problem from the other maestro now i have a new 24 channel maestro. and I had all the sequences working perfectly but now all of the motors glitch randomly in the middle of my sequences or when i and trying to control here is my saved settings from that maestro also i have tried changing my batteries twice still happening thank you for your help

-vin

<!--Pololu Maestro servo controller settings file, http://www.pololu.com/catalog/product/1350-->
<UscSettings version="1">
  <NeverSuspend>false</NeverSuspend>
  <SerialMode>UART_FIXED_BAUD_RATE</SerialMode>
  <FixedBaudRate>9600</FixedBaudRate>
  <SerialTimeout>0</SerialTimeout>
  <EnableCrc>false</EnableCrc>
  <SerialDeviceNumber>12</SerialDeviceNumber>
  <SerialMiniSscOffset>0</SerialMiniSscOffset>
  <EnablePullups>false</EnablePullups>
  <Channels MiniMaestroServoPeriod="80000" ServoMultiplier="1">
    <!--Period = 20 ms-->
    <!--Channel 0-->
    <Channel name="headtilt" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="25" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 1-->
    <Channel name="headupdown" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="25" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 2-->
    <Channel name="rightleg" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="15" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 3-->
    <Channel name="right twist" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="15" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 4-->
    <Channel name="left twist" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="15" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 5-->
    <Channel name="left lift" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="15" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 6-->
    <Channel name="right sensor" mode="Input" min="0" max="1024" homemode="Ignore" home="0" speed="0" acceleration="0" neutral="1024" range="1905" />
    <!--Channel 7-->
    <Channel name="left sensor" mode="Input" min="0" max="1024" homemode="Ignore" home="0" speed="0" acceleration="0" neutral="1024" range="1905" />
    <!--Channel 8-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 9-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 10-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 11-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 12-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 13-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 14-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 15-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 16-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 17-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 18-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 19-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 20-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 21-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 22-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
    <!--Channel 23-->
    <Channel name="" mode="Servo" min="3968" max="8000" homemode="Off" home="3968" speed="0" acceleration="0" neutral="6000" range="1905" />
  </Channels>
  <Sequences>
    <Sequence name="notice left">
      <Frame name="Frame 0" duration="500">6062 7784 4261 5024 4516 4418 653 698 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 1" duration="500">5201 7784 4261 5024 4516 4418 943 946 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 2" duration="500">5201 6590 4261 5024 4516 4418 815 812 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 3" duration="500">5201 5690 4261 5024 4516 4418 723 808 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 4" duration="500">5553 5690 4261 5024 4516 4418 648 810 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 5" duration="500">3968 5690 4261 5024 4516 4418 816 817 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 6" duration="500">4907 5690 4261 5024 4516 4418 873 941 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 7" duration="500">4907 4300 4261 5024 4516 4418 926 923 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 8" duration="500">5494 4300 4261 5024 4516 4418 821 821 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 9" duration="500">5494 4300 4261 5024 4516 4418 817 816 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 10" duration="500">5494 4300 4261 5024 4516 4418 933 933 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 11" duration="500">5494 4300 4261 5024 4516 4418 768 810 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 12" duration="500">5494 4300 4261 5024 4516 4418 821 814 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 13" duration="500">5494 4300 4261 5024 4516 4418 813 814 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 14" duration="500">5494 4300 4261 5024 4516 4418 923 921 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 15" duration="500">5494 4300 4261 5024 4516 4418 938 938 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 16" duration="500">5494 4300 4261 5024 4516 4418 929 927 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 17" duration="500">5494 4300 4261 5024 4516 4418 938 678 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 18" duration="500">5494 4300 4261 5024 4516 4418 939 934 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 19" duration="500">5494 4300 4261 5024 4516 4418 943 933 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 20" duration="500">5494 4300 8000 5024 4124 7393 676 677 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 21" duration="500">5494 4300 4379 5024 4124 5827 932 929 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 22" duration="500">5494 4300 7080 5024 4124 7882 896 861 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
    </Sequence>
    <Sequence name="notice right">
      <Frame name="Frame 0" duration="500">5473 5944 7080 5024 4124 7882 769 773 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 1" duration="500">5473 6532 7080 5024 4124 7882 774 777 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 2" duration="500">6081 6532 7080 5024 4124 7882 657 659 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 3" duration="500">5592 6532 7080 5024 4124 7882 685 686 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 4" duration="500">6218 6532 7080 5024 4124 7882 773 771 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 5" duration="500">4809 6532 7080 5024 4124 7882 762 766 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 6" duration="500">5455 6532 7080 5024 4124 7882 774 773 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 7" duration="500">5455 8000 7080 5024 4124 7882 675 679 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 8" duration="500">6121 8000 7080 5024 4124 7882 766 766 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 9" duration="500">6688 8000 7080 5024 4124 7882 644 648 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 10" duration="500">4633 8000 7080 5024 4124 7882 770 769 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 11" duration="500">4633 8000 7080 5024 4124 7882 677 680 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 12" duration="500">4633 8000 7080 5024 4124 7882 668 676 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 13" duration="500">4633 8000 7080 5024 4124 7882 76 659 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 14" duration="500">4633 8000 7080 5024 4124 7882 82 677 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 15" duration="500">4633 8000 7080 5024 4124 7882 629 640 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 16" duration="500">4633 8000 7080 5024 4124 7882 645 653 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 17" duration="500">4633 8000 7080 5024 4124 7882 771 772 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 18" duration="500">4633 8000 7080 5024 4124 7882 772 771 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 19" duration="500">4633 8000 7080 5024 4124 7882 690 639 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 20" duration="500">4633 8000 7080 5024 4124 7882 768 771 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 21" duration="500">4633 8000 5259 5024 4124 7882 677 673 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 22" duration="500">4633 8000 5259 6375 4124 7882 783 781 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 23" duration="500">4633 7960 5259 7334 4124 7882 660 667 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 24" duration="500">4633 7920 5259 5846 4124 7882 781 782 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 25" duration="500">4633 7920 5259 5846 5651 7882 757 762 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 26" duration="500">4633 7920 5259 5846 3968 7882 778 785 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
    </Sequence>
    <Sequence name="unstimulated">
      <Frame name="Frame 0" duration="500">4848 7843 7256 3968 4633 4457 772 633 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 1" duration="500">5572 7843 7256 3968 4633 4457 677 682 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 2" duration="500">4653 7843 7256 3968 4633 4457 679 762 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 3" duration="500">4653 6062 7256 3968 4633 4457 762 766 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 4" duration="500">4653 7138 7256 3968 4633 4457 622 632 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 5" duration="500">4693 6903 7256 3968 4633 4457 680 684 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 6" duration="500">4693 4966 7256 3968 6708 4457 531 582 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 7" duration="500">4693 4966 7256 3968 4516 4457 766 763 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 8" duration="500">7080 4966 7256 3968 4516 4457 649 657 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 9" duration="500">5279 4966 7256 3968 4516 4457 638 639 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 10" duration="500">5279 4966 4163 5377 4516 4496 784 726 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 11" duration="500">5279 4966 4163 5220 4516 4496 634 665 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 12" duration="500">5279 4966 6610 5024 4516 6845 684 687 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 13" duration="500">5279 4966 4261 5024 4516 4418 619 682 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 14" duration="500">5827 4966 4261 5024 4516 4418 784 796 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 15" duration="500">4731 7040 4261 5024 4516 4418 793 799 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 16" duration="500">4731 3968 4261 5024 4516 4418 703 777 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 17" duration="500">4731 6179 4261 5024 4516 4418 795 799 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 18" duration="500">4731 4633 4261 5024 4516 4418 793 791 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 19" duration="500">4731 7119 4261 5024 4516 4418 688 744 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 20" duration="500">4731 7784 4261 5024 4516 4418 797 799 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 21" duration="500">5631 7784 4261 5024 4516 4418 793 775 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 22" duration="500">6000 6000 4848 3968 6000 5318 5201 6000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 23" duration="500">6000 6000 7138 3968 6000 5318 5201 6000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 24" duration="500">6000 6000 4516 3968 6000 5318 5201 6000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 25" duration="500">6000 6000 7471 3968 6000 5318 5201 6000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 26" duration="500">6000 6000 7471 3968 3968 5318 5201 6000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
      <Frame name="Frame 27" duration="500">0 0 0 0 0 0 991 995 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Frame>
    </Sequence>
  </Sequences>
  <Script ScriptDone="true" />
</UscSettings>

Thank you for posting your settings file. Are you running your sequences from the “Sequencer” tab (without a script)? Does the glitchy behavior happen for all three of your saved sequences? What kind of “glitch” are you seeing (e.g. are the servos twitching and jerking or going to the wrong position)? It looks like you are using 6 servos and 2 sensors; if the movement is twitchy or jerky, could you try only connecting one servo, and if that works slowing adding additional servos until the undesired behavior comes back?

By the way, it is not clear to me what you are trying to do with the sensors since it looks like you are only using the sequencer. A sequence is simply a list of “frames” specifying the positions of each of the servos and a duration for each frame; it does not handle inputs.

Brandon

hi, what i am trying to do is make a robot look from left when the left sensor is activated and to the right when the right sensor is activated… and I am learning a lot more about the mini maestro than ever before which is awesome the glitiching seems to no longer be an issue after changing my battery but now I face the programming portion of this project I have programmed a separate maestro before to do exactly what I want this robot to do (stated above) but every time I try and input the name of the sensors its doesn’t work like it docent turn green and I keep on getting the message "Error applying parameters. script:2:1: did not understand "RIGHT_SENSOR"the sensors seem to be working fine hope this makes sense also I have been copying the names of the sensors exactly as they are named in the status with a “_” in every space thank you so much for your help it also says it for left sensor

I am glad you were able to fix the glitchy behavior by changing the batteries.

Regarding your new problem, it sounds like you are trying to refer to the Maestro channel in your script by the name configured to them in the “Channel Settings” tab. Please note that you should be using the channel number and not the configured name (e.g. instead of “RIGHT_SENSOR”, you should refer to it as 7). If you continue to have problems with your script, could you post an updated version of it?

Brandon