Hi all
Sorry for stupid question, if it is, but i couldn't find keywords for minsensors' Servo-controller commands and constants anywhere in brixcc files, while these commands and constants do exist in documentation.
Could someone help with adding these keywords to brixcc interface?
TNX
NXC mindsensors servo keywords missing
Re: NXC mindsensors servo keywords missing
The latest test release includes standard API functions for the mindsensors.com NXTServo device along with several other mindsensors.com devices that were previously not supported with high level API functions.
http://bricxcc.sourceforge.net/test_releases/
Make sure you Default your API and Templates via the Preferences dialog so that the new functions show up with proper highlighting and code completion support and in the templates window.
Here is an extract from the nxc_templates.txt file showing some of the recently added mindsensors.com API functions:
John Hansen
http://bricxcc.sourceforge.net/test_releases/
Make sure you Default your API and Templates via the Preferences dialog so that the new functions show up with proper highlighting and code completion support and in the templates window.
Here is an extract from the nxc_templates.txt file showing some of the recently added mindsensors.com API functions:
Code: Select all
ACCLNxCalibrateX("port", "i2caddr");\=
ACCLNxCalibrateXEnd("port", "i2caddr");\=
ACCLNxCalibrateY("port", "i2caddr");\=
ACCLNxCalibrateYEnd("port", "i2caddr");\=
ACCLNxCalibrateZ("port", "i2caddr");\=
ACCLNxCalibrateZEnd("port", "i2caddr");\=
ACCLNxResetCalibration("port", "i2caddr");\=
ACCLNxSensitivity("port", "i2caddr");\=
ACCLNxXOffset("port", "i2caddr")
ACCLNxXRange("port", "i2caddr")
ACCLNxYOffset("port", "i2caddr")
ACCLNxYRange("port", "i2caddr")
ACCLNxZOffset("port", "i2caddr")
ACCLNxZRange("port", "i2caddr")
NXTHIDAsciiMode("port", "i2caddr");\=
NXTHIDDirectMode("port", "i2caddr");\=
NXTHIDLoadCharacter("port", "i2caddr", "modifier", "character");\=
NXTHIDTransmit("port", "i2caddr");\=
NXTLineLeaderAverage("port", "i2caddr");\=
NXTLineLeaderCalibrateBlack("port", "i2caddr");\=
NXTLineLeaderCalibrateWhite("port", "i2caddr");\=
NXTLineLeaderInvert("port", "i2caddr");\=
NXTLineLeaderPowerDown("port", "i2caddr");\=
NXTLineLeaderPowerUp("port", "i2caddr");\=
NXTLineLeaderReset("port", "i2caddr");\=
NXTLineLeaderResult("port", "i2caddr");\=
NXTLineLeaderSnapshot("port", "i2caddr");\=
NXTLineLeaderSteering("port", "i2caddr");\=
NXTPowerMeterCapacityUsed("port", "i2caddr");\=
NXTPowerMeterElapsedTime("port", "i2caddr");\=
NXTPowerMeterErrorCount("port", "i2caddr");\=
NXTPowerMeterMaxCurrent("port", "i2caddr");\=
NXTPowerMeterMaxVoltage("port", "i2caddr");\=
NXTPowerMeterMinCurrent("port", "i2caddr");\=
NXTPowerMeterMinVoltage("port", "i2caddr");\=
NXTPowerMeterPresentCurrent("port", "i2caddr");\=
NXTPowerMeterPresentPower("port", "i2caddr");\=
NXTPowerMeterPresentVoltage("port", "i2caddr");\=
NXTPowerMeterResetCounters("port", "i2caddr");\=
NXTPowerMeterTotalPowerConsumed("port", "i2caddr");\=
NXTServoBatteryVoltage("port", "i2caddr");\=
NXTServoEditMacro("port", "i2caddr");\=
NXTServoGotoMacroAddress("port", "i2caddr", "macro");\=
NXTServoHaltMacro("port", "i2caddr");\=
NXTServoInit("port", "i2caddr", "servo");\=
NXTServoPauseMacro("port", "i2caddr");\=
NXTServoPosition("port", "i2caddr", "servo");\=
NXTServoQuitEdit("port");\=
NXTServoReset("port", "i2caddr");\=
NXTServoResumeMacro("port", "i2caddr");\=
NXTServoSpeed("port", "i2caddr", "servo");\=
PFMateSend("port", "i2caddr", "channel", "motors", "cmdA", "spdA", "cmdB", "spdB");\=
PFMateSendRaw("port", "i2caddr", "channel", "b1", "b2");\=
SensorNXTSumoEyes("port");\=
SensorNXTSumoEyesRaw("port");\=
SetACCLNxSensitivity("port", "i2caddr", "slevel");\=
SetNXTLineLeaderKdFactor("port", "i2caddr", "value");\=
SetNXTLineLeaderKdValue("port", "i2caddr", "value");\=
SetNXTLineLeaderKiFactor("port", "i2caddr", "value");\=
SetNXTLineLeaderKiValue("port", "i2caddr", "value");\=
SetNXTLineLeaderKpFactor("port", "i2caddr", "value");\=
SetNXTLineLeaderKpValue("port", "i2caddr", "value");\=
SetNXTLineLeaderSetpoint("port", "i2caddr", "value");\=
SetNXTServoPosition("port", "i2caddr", "servo", "pos");\=
SetNXTServoQuickPosition("port", "i2caddr", "servo", "qpos");\=
SetNXTServoSpeed("port", "i2caddr", "servo", "speed");\=
SetSensorNXTSumoEyes("port", "bLong");\=
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Who is online
Users browsing this forum: No registered users and 0 guests