Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
Ro-Bot-X, i support getting AVRcam added. Do you own one and are willing to debug/test the code? The requirement to getting your sensor added is that you gotta own it and willing to test/debug alpha code. Or you can buy Webbot/admin one and we'll do it for you
As for the tiny2313 or any other memory limited mcu . . .WebbotLib is designed to be feature-rich, powerful, and easy to use. This is a direct contradiction to what needs to be done to fit a program on a tiny . . . unless you plan to manufacture 20k+ units of something, the cost savings of a dollar or two isn't worth days of effort.
ST LPR530AL - which measure pitch and roll and is good companion withST LY530ALH - which measures yawThese two gyros have just been released by SparkFun along with an ADXL335 3 axis accelerometer (already supported) to give a '6 degrees of freedom' sensor.
Fixed an issue in the 'clock' where the occasional strange result was generated.
Changed GPS code so that baud rate is not 'auto initialised' to 4800baud. It is now up to you to set the required speed that the device communicates at.
servos.h - added 'setServosConnected' and 'servosSetSpeed' to allow you to send the same command to entire bank of servos.
Is it 7, or 3.5 now? (just checking)
So, I just call this to turn off a bank?servosConnect(&bank1);
servosDisconnect(&bank1)
servosSetConnected(&bank1, FALSE)
but its now about every 70 minutes
Quote from: Admin on October 01, 2009, 04:18:51 PMSo, I just call this to turn off a bank?servosConnect(&bank1);No - that would 're-connect' the servos. Look at servos.h...To disconnect you can use:Code: [Select]servosDisconnect(&bank1)orCode: [Select]servosSetConnected(&bank1, FALSE)
Maxbotix_EZ1 sensor = MAKE_Maxbotix_EZ1(F0);
I'm trying to make sense of how to use the gpsNEMA header and code, i wish i had an example of how to access the data. For example, does gpsNEMA.latitude work?
Also it doesn't look like you parse out the "degrees of track true" from the NMEA messages, is this correct? Would you add that? I have a compass on my SAGAR BOT but still need to compare it to GPS Track degrees to compute offset of true and actual north.
// Example of how to use an NMEA compatible GPS card#define RPRINTF_FLOAT// We will use UART3 to talk to the GPS#include "gpsNMEA.h"#include "buffer.h"#include "sys/Axon.h"#include "led.h"#include "gpsNMEA.h"#include "rprintf.h"// Create the gpsGPS_NMEA nmea = MAKE_GPS_NMEA(UART3);// This routine is called once only and allows you to do any initialisation// Dont use any 'clock' functions here - use 'delay' functions insteadvoid appInitHardware(void){ // Set up the hardware UART to xmit the results uartInit(UART1, (BAUD_RATE)9600); // Set rprintf to go to output rprintfInit(&uart1SendByte); // Turn on LED for no signal statusLED_on(); rprintf("GPS warming up\n");}TICK_COUNT appInitSoftware(TICK_COUNT loopStart){ return 0;}// This routine is called repeatedly - its your main loopTICK_COUNT appControl(LOOP_COUNT loopCount, TICK_COUNT loopStart){ gpsNMEAprocess(&nmea); if(nmea.info.valid){ statusLED_off(); rprintf("# sat:%d",nmea.info.numSatellites); rprintf(" long:"); rprintfFloat(10,nmea.info.longitude); rprintf(" lat:"); rprintfFloat(10,nmea.info.latitude); rprintf(" alt:"); rprintfFloat(10,nmea.info.altitude); rprintf("\n"); } return 0;}
Yea, a few other variables aren't being processed either that probably should be.
NB Don't forget that a given GPS device may only supply a subset of the possible GPS messages, and for each message may only supply a subset of the fields. eg not all GPS' provide altitude.I tried to use the most useful fields to keep the code and data structure sizes as small as possible. Hence things like the details of each visible satellite are not returned as there isn't, as far as I can tell, anything useful that a robot could do with that info.
What I meant about the satellite info is I dont return: the satellite number and location of each individual satellite that is detected. This is only useful for graphic display.
As for degrees, it won't be very reliable unless your robot is moving at a decent speed - its not a compass, it uses angle between current and previous locations only.
Is there a way I can help you out more directly in perfecting the library, like adding to the documentation?
I also wrote an interface to control an Irobot Create/Roomba a while back that I could adapt (or try to) into a driver for your library.
When i find my irobot code, i will see if i can adapt it for the Webbot lib driver style.
What about a wiki for the Webbot documentation? That way a few of the trusted regulars around here could help webbot perfect the documentation. and at the very least, a arduino reference ( http://www.arduino.cc/en/Reference/HomePage ) style index.
I assume Webbot and Admin would rather keep it 'in the family', but i have server space and a domain i could donate (yeah for unlimited transfer volume) and I have been waiting for an excuse to learn to install / manage a wiki. Would you mind if i went ahead and started a wiki? and started to transfer what is in the pdf document into it?