Component: Formula AllCode Dummy (RB4420) (Mechatronics): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 107: | Line 107: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioAddToBuffer''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioAddToBuffer''' | ||
|- | |- | ||
| Line 126: | Line 126: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioQueueLength''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioQueueLength''' | ||
|- | |- | ||
| Line 140: | Line 140: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioReadFromBuffer''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioReadFromBuffer''' | ||
|- | |- | ||
| Line 154: | Line 154: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioStreamControl''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AudioStreamControl''' | ||
|- | |- | ||
| Line 178: | Line 178: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothCheckConnection''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothCheckConnection''' | ||
|- | |- | ||
| Line 192: | Line 192: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothQueueLength''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothQueueLength''' | ||
|- | |- | ||
| Line 206: | Line 206: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothReceive''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothReceive''' | ||
|- | |- | ||
| Line 220: | Line 220: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothTransmit''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothTransmit''' | ||
|- | |- | ||
| Line 239: | Line 239: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothTransmitString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothTransmitString''' | ||
|- | |- | ||
| Line 258: | Line 258: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckIR''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckIR''' | ||
|- | |- | ||
| Line 277: | Line 277: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckLine''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckLine''' | ||
|- | |- | ||
| Line 296: | Line 296: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckUSB''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CheckUSB''' | ||
|- | |- | ||
| Line 310: | Line 310: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderReadCount''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderReadCount''' | ||
|- | |- | ||
| Line 329: | Line 329: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderReset''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderReset''' | ||
|- | |- | ||
| Line 343: | Line 343: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Forward''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Forward''' | ||
|- | |- | ||
| Line 362: | Line 362: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 376: | Line 376: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDBacklight''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDBacklight''' | ||
|- | |- | ||
| Line 395: | Line 395: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClear''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClear''' | ||
|- | |- | ||
| Line 409: | Line 409: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawLine''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawLine''' | ||
|- | |- | ||
| Line 443: | Line 443: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawRectangle''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawRectangle''' | ||
|- | |- | ||
| Line 487: | Line 487: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPlotPixel''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPlotPixel''' | ||
|- | |- | ||
| Line 511: | Line 511: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintNumber''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintNumber''' | ||
|- | |- | ||
| Line 545: | Line 545: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintString''' | ||
|- | |- | ||
| Line 579: | Line 579: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDSetBackgroundColour''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDSetBackgroundColour''' | ||
|- | |- | ||
| Line 598: | Line 598: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDSetForegroundColour''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDSetForegroundColour''' | ||
|- | |- | ||
| Line 617: | Line 617: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDWriteByte''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDWriteByte''' | ||
|- | |- | ||
| Line 646: | Line 646: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff''' | ||
|- | |- | ||
| Line 665: | Line 665: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn''' | ||
|- | |- | ||
| Line 684: | Line 684: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDWrite''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDWrite''' | ||
|- | |- | ||
| Line 703: | Line 703: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoBackwards''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoBackwards''' | ||
|- | |- | ||
| Line 722: | Line 722: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoForwards''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoForwards''' | ||
|- | |- | ||
| Line 741: | Line 741: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoSetSpeed''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoSetSpeed''' | ||
|- | |- | ||
| Line 760: | Line 760: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoTurnLeft''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoTurnLeft''' | ||
|- | |- | ||
| Line 779: | Line 779: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoTurnRight''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LogoTurnRight''' | ||
|- | |- | ||
| Line 798: | Line 798: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PlayNote''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PlayNote''' | ||
|- | |- | ||
| Line 822: | Line 822: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadBattery''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadBattery''' | ||
|- | |- | ||
| Line 836: | Line 836: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadIRSensor''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadIRSensor''' | ||
|- | |- | ||
| Line 855: | Line 855: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLDR''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLDR''' | ||
|- | |- | ||
| Line 869: | Line 869: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLineSensor''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLineSensor''' | ||
|- | |- | ||
| Line 888: | Line 888: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadMic''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadMic''' | ||
|- | |- | ||
| Line 902: | Line 902: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSwitch''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSwitch''' | ||
|- | |- | ||
| Line 921: | Line 921: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Reverse''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Reverse''' | ||
|- | |- | ||
| Line 940: | Line 940: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMotors''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMotors''' | ||
|- | |- | ||
| Line 964: | Line 964: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SpinLeft''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SpinLeft''' | ||
|- | |- | ||
| Line 983: | Line 983: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SpinRight''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SpinRight''' | ||
|- | |- | ||
| Line 1,002: | Line 1,002: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Stop''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Stop''' | ||
|- | |- | ||
| Line 1,016: | Line 1,016: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WaitForSwitch''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WaitForSwitch''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix TSL |
| Version | 1.2 |
| Category | Mechatronics |
Formula AllCode Dummy component
A component to allow all the features of the Formula AllCode robot to be investigated. Fully simulated component which can interact with simulated objects on the panel as well as control the real hardware.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_FA_Source_P4_Dummy_Template.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_FA_Source_P4_Dummy_Template.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Line Following
Line following example using the Formula AllCode, works with objects on the simulation panel and on the real hardware.
Simulation with the API component
An example showing how to use the API component to drive the robot in simulation.
Macro reference
AudioAddToBuffer
| AudioAddToBuffer | |
| Writes a value to the 16-bit audio output buffer. | |
| Data | |
| Return | |
AudioQueueLength
| AudioQueueLength | |
| Retreives the current length of valid data within the audio queue | |
| Return | |
AudioReadFromBuffer
| AudioReadFromBuffer | |
| Allows the audio buffer to be used for other streaming data such as recording the mic. | |
| Return | |
AudioStreamControl
BluetoothCheckConnection
| BluetoothCheckConnection | |
| Checks the status of the Bluetooth connection. Returns 0 for not paired and 1 for paired. | |
| Return | |
BluetoothQueueLength
| BluetoothQueueLength | |
| Reads the length of received Bluetooth data in bytes. | |
| Return | |
BluetoothReceive
| BluetoothReceive | |
| Attempt to read a byte from the Bluetooth receive queue. | |
| Return | |
BluetoothTransmit
| BluetoothTransmit | |
| Sends a byte via the Bluetooth data connection. | |
| Data | |
| Return | |
BluetoothTransmitString
| BluetoothTransmitString | |
| Sends a string via the Bluetooth data connection. | |
| Data | |
| Return | |
CheckIR
CheckLine
CheckUSB
| CheckUSB | |
| Checks to see if a USB cable is connected to the robot. Returns 0 for no connection and 1 for an active connection. | |
| Return | |
EncoderReadCount
| EncoderReadCount | |
| Reads one of the motor encoder counters. Each encoder count is equal to 0.314159 mm. | |
| Channel | |
| 0 = LeftCount, 1=RightCount | |
| Return | |
EncoderReset
| EncoderReset | |
| Resets the encoder counters to 0 | |
| Return | |
Forward
| Forward | |
| Drives both motors of the formula flowcode forwards with the power specified. | |
| Power | |
| Amount of power to use to drive motor. Range 0-100 | |
| Return | |
Initialise
| Initialise | |
| Starts up the Formula Allcode PWM for motor control and performs the wait for button press if enabled. | |
| Return | |
LCDBacklight
| LCDBacklight | |
| Controls the brighness of the LCD backlight | |
| Brightness | |
| Range: 0-100, 0=Off, 1=Min Brightness, 100=Max Brightness | |
| Return | |
LCDClear
| LCDClear | |
| Clears the contents of the graphical LCD. | |
| Return | |
LCDDrawLine
| LCDDrawLine | |
| Draws a line on the LCD. | |
| X1 | |
| Range 0-127 | |
| Y1 | |
| Range 0-31 | |
| X2 | |
| Range 0-127 | |
| Y2 | |
| Range 0-31 | |
| Return | |
LCDDrawRectangle
LCDPlotPixel
| LCDPlotPixel | |
| Allows a single pixel on the LCD to be set or cleared. | |
| X | |
| Sets the X coordinate - Range 0-127 | |
| Y | |
| Sets the Y coordinate - Range 0-31 | |
| Return | |
LCDPrintNumber
LCDPrintString
LCDSetBackgroundColour
| LCDSetBackgroundColour | |
| Sets the pixel colour to drive the LCD. Default colour is 1 where a set pixel is black and the background is white. | |
| Colour | |
| Range 0-1 : 0=White, 1=Black | |
| Return | |
LCDSetForegroundColour
| LCDSetForegroundColour | |
| Sets the pixel colour to drive the LCD. Default colour is 1 where a set pixel is black and the background is white. | |
| Colour | |
| Range 0-1 : 0=White, 1=Black | |
| Return | |
LCDWriteByte
| LCDWriteByte | |
| Data | |
| X | |
| Y | |
| Return | |
LEDOff
| LEDOff | |
| Switches off a single LED on the front of the Formula Allcode. | |
| LED | |
| Which LED to switch on, range 0-7 | |
| Return | |
LEDOn
| LEDOn | |
| Switches on a single LED on the front of the Formula Allcode. | |
| LED | |
| Which LED to switch on, range 0-7 | |
| Return | |
LEDWrite
| LEDWrite | |
| Allows control of all 8-LEDs on the front of the Formula Allcode. | |
| LED_Byte | |
| 8-bit binary value to write to the 8 LEDs | |
| Return | |
LogoBackwards
LogoForwards
LogoSetSpeed
| LogoSetSpeed | |
| Sets the cruise speed for LOGO type macros. Default speed 20%. | |
| Speed | |
| Range 1-100, Default 60 | |
| Return | |
LogoTurnLeft
LogoTurnRight
PlayNote
ReadBattery
ReadIRSensor
ReadLDR
ReadLineSensor
ReadMic
| ReadMic | |
| Reads the current audio signal level from the on-board microphone. Return value range: 0 to 4095 | |
| Return | |
ReadSwitch
| ReadSwitch | |
| Reads the value of one of the switches from the front of the Formula Allcode. | |
| Switch | |
| Which switch do we want to read 0=Left, 1=Right | |
| Return | |
Reverse
| Reverse | |
| Drives both motors of the formula flowcode backwards with the power specified. | |
| Power | |
| Amount of power to use to drive motor. Range 0-100 | |
| Return | |
SetMotors
| SetMotors | |
| Sets the speed and direction of the Formula Allcode motors. | |
| Left | |
| Valid Range = -100 to 100 | |
| Right | |
| Valid Range = -100 to 100 | |
| Return | |
SpinLeft
| SpinLeft | |
| Spins the formula flowcode on the spot in an anticlockwise direction as seen from above. | |
| Power | |
| Amount of power to use to drive motor. Range 0-100 | |
| Return | |
SpinRight
| SpinRight | |
| Spins the formula flowcode on the spot in a clockwise direction as seen from above. | |
| Power | |
| Amount of power to use to drive motor. Range 0-100 | |
| Return | |
Stop
| Stop | |
| Stops both motors. | |
| Return | |
WaitForSwitch
| WaitForSwitch | |
| Waits for the specified switch to be pressed. | |
| Switch | |
| Which switch do we want to wait for 0=Left, 1=Right, 2=Either, 3=Both | |
| Return | |
