SCR_ parameters¶
18 parameters in the SCR_ family. ArduCopter 4.7 only — other vehicles share many of these names but not always the same ranges or meanings.
SCR_DEBUG_OPTS¶
Scripting Debug Level
Debugging options
User level |
Advanced |
Bitmask¶
Value |
Meaning |
|---|---|
|
No Scripts to run message if all scripts have stopped |
|
Runtime messages for memory usage and execution time |
|
Suppress logging scripts to dataflash |
|
log runtime memory usage and execution time |
|
Disable pre-arm check |
|
Save CRC of current scripts to loaded and running checksum parameters enabling pre-arm |
|
Disable heap expansion on allocation failure |
SCR_DIR_DISABLE¶
Directory disable
This will stop scripts being loaded from the given locations
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
Bitmask¶
Value |
Meaning |
|---|---|
|
ROMFS |
|
APM/scripts |
SCR_ENABLE¶
Enable Scripting
Controls if scripting is enabled
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
None |
|
Lua Scripts |
SCR_HEAP_SIZE¶
Scripting Heap Size
Amount of memory available for scripting
Range |
|
Increment |
|
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
SCR_LD_CHECKSUM¶
Loaded script checksum
Required XOR of CRC32 checksum of loaded scripts, vehicle will not arm with incorrect scripts loaded, -1 disables
User level |
Advanced |
SCR_RUN_CHECKSUM¶
Running script checksum
Required XOR of CRC32 checksum of running scripts, vehicle will not arm with incorrect scripts running, -1 disables
User level |
Advanced |
SCR_SDEV1_PROTO¶
Serial protocol of scripting serial device
Serial protocol of scripting serial device
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
None |
|
MAVLink1 |
|
MAVLink2 |
|
Frsky D |
|
Frsky SPort |
|
GPS |
|
Alexmos Gimbal Serial |
|
Gimbal |
|
Rangefinder |
|
FrSky SPort Passthrough (OpenTX) |
|
Lidar360 |
|
Beacon |
|
Volz servo out |
|
SBus servo out |
|
ESC Telemetry |
|
Devo Telemetry |
|
OpticalFlow |
|
RobotisServo |
|
NMEA Output |
|
WindVane |
|
SLCAN |
|
RCIN |
|
EFI Serial |
|
LTM |
|
RunCam |
|
HottTelem |
|
Scripting |
|
Crossfire VTX |
|
Generator |
|
Winch |
|
MSP |
|
DJI FPV |
|
AirSpeed |
|
ADSB |
|
AHRS |
|
SmartAudio |
|
FETtecOneWire |
|
Torqeedo |
|
AIS |
|
CoDevESC |
|
DisplayPort |
|
MAVLink High Latency |
|
IRC Tramp |
|
DDS XRCE |
|
IMUDATA |
|
PPP |
|
i-BUS Telemetry |
|
IOMCU |
SCR_SDEV2_PROTO¶
Serial protocol of scripting serial device
Serial protocol of scripting serial device
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
None |
|
MAVLink1 |
|
MAVLink2 |
|
Frsky D |
|
Frsky SPort |
|
GPS |
|
Alexmos Gimbal Serial |
|
Gimbal |
|
Rangefinder |
|
FrSky SPort Passthrough (OpenTX) |
|
Lidar360 |
|
Beacon |
|
Volz servo out |
|
SBus servo out |
|
ESC Telemetry |
|
Devo Telemetry |
|
OpticalFlow |
|
RobotisServo |
|
NMEA Output |
|
WindVane |
|
SLCAN |
|
RCIN |
|
EFI Serial |
|
LTM |
|
RunCam |
|
HottTelem |
|
Scripting |
|
Crossfire VTX |
|
Generator |
|
Winch |
|
MSP |
|
DJI FPV |
|
AirSpeed |
|
ADSB |
|
AHRS |
|
SmartAudio |
|
FETtecOneWire |
|
Torqeedo |
|
AIS |
|
CoDevESC |
|
DisplayPort |
|
MAVLink High Latency |
|
IRC Tramp |
|
DDS XRCE |
|
IMUDATA |
|
PPP |
|
i-BUS Telemetry |
|
IOMCU |
SCR_SDEV3_PROTO¶
Serial protocol of scripting serial device
Serial protocol of scripting serial device
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
None |
|
MAVLink1 |
|
MAVLink2 |
|
Frsky D |
|
Frsky SPort |
|
GPS |
|
Alexmos Gimbal Serial |
|
Gimbal |
|
Rangefinder |
|
FrSky SPort Passthrough (OpenTX) |
|
Lidar360 |
|
Beacon |
|
Volz servo out |
|
SBus servo out |
|
ESC Telemetry |
|
Devo Telemetry |
|
OpticalFlow |
|
RobotisServo |
|
NMEA Output |
|
WindVane |
|
SLCAN |
|
RCIN |
|
EFI Serial |
|
LTM |
|
RunCam |
|
HottTelem |
|
Scripting |
|
Crossfire VTX |
|
Generator |
|
Winch |
|
MSP |
|
DJI FPV |
|
AirSpeed |
|
ADSB |
|
AHRS |
|
SmartAudio |
|
FETtecOneWire |
|
Torqeedo |
|
AIS |
|
CoDevESC |
|
DisplayPort |
|
MAVLink High Latency |
|
IRC Tramp |
|
DDS XRCE |
|
IMUDATA |
|
PPP |
|
i-BUS Telemetry |
|
IOMCU |
SCR_SDEV_EN¶
Scripting serial device enable
Enable scripting serial devices
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
Disabled |
|
Enabled |
SCR_THD_PRIORITY¶
Scripting thread priority
This sets the priority of the scripting thread. This is normally set to a low priority to prevent scripts from interfering with other parts of the system. Advanced users can change this priority if scripting needs to be prioritised for realtime applications. WARNING: changing this parameter can impact the stability of your flight controller. The scipting thread priority in this parameter is chosen based on a set of system level priorities for other subsystems. It is strongly recommended that you use the lowest priority that is sufficient for your application. Note that all scripts run at the same priority, so if you raise this priority you must carefully audit all lua scripts for behaviour that does not interfere with the operation of the system.
Reboot required |
Yes — the change takes effect after a reboot. |
User level |
Advanced |
Values¶
Value |
Meaning |
|---|---|
|
Normal |
|
IO Priority |
|
Storage Priority |
|
UART Priority |
|
I2C Priority |
|
SPI Priority |
|
Timer Priority |
|
Main Priority |
|
Boost Priority |
SCR_USER1¶
Scripting User Parameter1
General purpose user variable input for scripts
User level |
Standard |
SCR_USER2¶
Scripting User Parameter2
General purpose user variable input for scripts
User level |
Standard |
SCR_USER3¶
Scripting User Parameter3
General purpose user variable input for scripts
User level |
Standard |
SCR_USER4¶
Scripting User Parameter4
General purpose user variable input for scripts
User level |
Standard |
SCR_USER5¶
Scripting User Parameter5
General purpose user variable input for scripts
User level |
Standard |
SCR_USER6¶
Scripting User Parameter6
General purpose user variable input for scripts
User level |
Standard |
SCR_VM_I_COUNT¶
Scripting Virtual Machine Instruction Count
The number virtual machine instructions that can be run before considering a script to have taken an excessive amount of time
Range |
|
Increment |
|
User level |
Advanced |