
EV3, NXTServo-v3 driver suite, examples, and RobotC 4.52
Posted this as a reply to a similar question under a similar topic, but this probably does need it's own topic. I'm thinking that root cause for my issue may have something to do with compatibility of RobotC 4.52 and EV3 with the current 'master' driver suite on Github. I purchased a license for 4.52 thinking I'd be able to use these drivers, but should probably first check for known causes for my problem. It's not clear to me from documentation and example code just what is legacy NXT and just what is intended for, or compatible with EV3 and RobotC 4.52.
Hi;
I’m trying to compile and run your mindsensors-servo-test1.c example:
* Xander Soldaat (xander_at_botbench.com)
* 28 November 2009
* version 0.2
From driver suite .txt file
These drivers are for RobotC 3.59 beta and higher and are part of the
version 3.3 of the 3rd Party RobotC Drivers suite.
My RobotC version is:
ROBOTC 4.52 (F/W: 1.52)
Build Date: Dec 8 2015
No matter what I try using the motor/sensor config options, or directly editing the pragma , trying:
#pragma config(Sensor, S1, NXTSERVO, sensorEV3_GenericI2C)
I keep getting the following error:
ERROR, You have not setup the sensor port correctly.
Please refer to one of the examples.
Detected SensorType on port[0]: 0
I’m using the mindsensors NXTServo-v3 board. I can get it to work with the Mindstorms block example, so I know the hardware setup works, and they I2C address seems to be in agreement between the two environments. I’ve also been able to run some of the demos for the Windstorms motors in my Win 7 RobotC environment, so I know all that connectivity works. I notice that in the header of your example for the NXTServo board, and the driver suite, there is no mention of RobotC versions anywhere near 4.52. Could there be an issue with later versions of RobotC that are not backward compatible with the driver suite or NXTServo example? Even when I tried the motor demos, the Motor/Sensor config stuff seems pretty temperamental, and docs appear to be somewhat out of date for RobotC configuration. The config menus in the docs don’t seem to match. The ‘intrinsic’ implementation stuff obscures (at least for me) what’s going on when it tries to do the macro substitutions for the sensor type etc, so I’m having a tough time debugging what’s going on.
Any words of enlightenment appreciated

Thanks