Basebot software: Difference between revisions

From Rsewiki
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 31: Line 31:
  + test  
  + test  


The top directory (basebot) is for "MS Visual Studio Code", the basebot.ino is the Arduino code and the subdirectory '''src''' is the support code that makes it a basebot.
The top directory "basebot" is for "MS Visual Studio Code", the "basebot.ino" is the Arduino code and the subdirectory '''src''' is the support files (c++ code) that make it a Basebot. The "platformio.ini" tells MS PlatformIO about needed libraries etc.


== Development environment (IDE) ==
If using MS Visual Studio, the top directory "basebot_6" should be called "src". Either rename it or make a symbolic link called src that points to basebot_6 in the same directory. Further, some items in MS Visual Studio Code work better if you rename basebot_6.ino to basebot_6.cpp.
 
=== Arduino ===
 
Open Arduino and select the '''basebot_6.ino'''.
 
[[file:arduino_open_project.png | 500px]]
 
Then, set the board to Teensy 4.1.
 
[[file:arduino_set board.png | 500px]]
 
You should now be able to compile and upload the code to the robot.
 
==== Note ====
 
Editing the '''basebot ''' files in the '''src''' subdirectory can not be done in the Arduino IDE, but maybe that is unnecessary.
 
The '''basebot''' will send data to the serial monitor. This data needs to be stored in a file for Matlab use, and another serial monitor or other tool probably has to be used.
 
=== Visual studio code (Linux) ===
 
Install MS Visual Studio from

Latest revision as of 08:45, 7 September 2024

Back to Basebot

Install SVN

The software is in an SVN repository.

SVN is an open-source repository management software; see: https://subversion.apache.org/

Install a version for your platform.

Get Basebot source

The repository address is

svn://repos.gbar.dtu.dk/jcan/basebot

If you have a command line version of SVN, then:

svn checkout svn://repos.gbar.dtu.dk

This will give you a file structure like this:

basebot
+ basebot_6
| + basebot_6.ino
| + Makefile
| + src
| | + (basebot support files)
+ include
+ lib
+ platformio.ini
+ test 

The top directory "basebot" is for "MS Visual Studio Code", the "basebot.ino" is the Arduino code and the subdirectory src is the support files (c++ code) that make it a Basebot. The "platformio.ini" tells MS PlatformIO about needed libraries etc.

If using MS Visual Studio, the top directory "basebot_6" should be called "src". Either rename it or make a symbolic link called src that points to basebot_6 in the same directory. Further, some items in MS Visual Studio Code work better if you rename basebot_6.ino to basebot_6.cpp.