Hi all,
I would like only to know if this method could teorically work.
I have the Axon and the Sabertooth 2x10 motor controller.
I have connected the Uart2 Tx Pin to the S1 port of the Sabertooth and the G Pin to the 0V port of the Sabertooth. I have set the switches of the Axon with the same method of page 13 of the Sabertooth datasheet ->
http://www.dimensionengineering.com/datasheets/Sabertooth2x10.pdf (the 38400 baud rate) and I've written this simple code:
Eurex_rr.c file:
//SoR Include
#include "SoR_Utils.h" //includes all the technical stuff
#include "hardware.c" //declare hardware variables and ports
//#include "CMUcam.c" //not yet written
#include "sensors.c" //sensor libraries for sonar, sharp IR, etc.
#include "misc.c" //includes libraries for various hardware and other useful stuff
#include "axon_DAQ.c" //use the Axon like a data acquisition device
//#include "Blackfin_Axon.c" //files for Blackfin Robot camera
#include "control.c" //your code goes in here
//#include "servo_controller.c" //Axon servo controller
//#include "axon_test.c" //include this is doing a function test for the Axon
//#include "axon_oscope_test.c" //include this is doing a function test for the Axon
int main(void)
{
while (1 == 1){
sabertooth (40,179);
}
}
and I compile it in a hex file and I must now only upload it to the Axon microcontroller. Is this going to work?
Thank you, bye bye