-
Notifications
You must be signed in to change notification settings - Fork 0
Robot Development w FlashLib
Do you need to create an amazing robot but want to do so quickly? Do you need a framework for you robot software so you won't have to create everything from scrach? Do you need your robot to do complicated tasks but don't know how?
If any of these are true (or any other reason...) you have come to the right place! FlashLib is not just a simle library, it provides a framework and a huge array of features and tools for any robot or just software in general.
To help you get start, we will be reviewing what you can do with FlashLib and how to use it to create your robot software. We assume that you do know a thing or two when jumping into this place, such as: what are motors, robots, sensors, etc.
Before we start, FRC programmers should refer to the FlashLib in FRC page to learn about using FlashLib with FRC robots because here we will be mostly discussing FlashLib for non-FRC robots.
FlashLib provides a lot of features for users, some can even be used for non-robot projects.
The robot framework provides a base for running and controlling robots and managing operations on the robot with ease. In addition to that, users have access to control loops, algorithms and more, all of which is completely optional. So basically, it is possible to immediately jump into creating a software without worring about planning the robot control.
FlashLib uses a control loop for robot control. Users define control modes for their robot and the framework runs a continous loop which execute user code for the appropriate operation mode when necessary. Selecting operation modes depends on users, because there are many ways choose modes. So it is possible to set the mode from the robot, or an entirely different and remote software.
Most robots have multiple systems, each performing a different task at the same time, and controlling that from code can sometimes get messy. Because of that, FlashLib introduces a scheduling system which allows users to execute and schedule tasks for multiple robot systems quickly. Using the scheduling system allows for quick execution of a dozen different tasks, something that can be incredibly useful with autonomous robots.
Please refer to the Robot Scheduling System page for further information.
Sometimes manual control is wanted for the robot, and this too, is already taken care of. FlashLib provides an HID package, filled with different types of controls and execution tasking. The actual retrival of HID data is abstracted, so users can read data from controllers however they like.
There are tons of actuators available for robots, so FlashLib provides general implementations for controlling them. In addition, FlashLib provides an abstraction for actuator types, so it is very simple to integrate actuators into FlashLib systems.
Like actuators, many sensors exist, so FlashLib integrates sensors using abstract control. That way, any sensor can be used alongside FlashLib. In addition, several sensors are already implemented in FlashLib.
FlashLib features several awesome control algorithms which provide control of popular drive systems, such as: tank drive, mecanum drive, etc; as well as autonomous motion algorthims for sensor-based operation.
FlashLib provides a build-in PID controller, allowing users to control the robot's operation more relaibly. The controller itself is used in FlashLib's motion algorithms extensively.
To allow users to code a robot once and use it on any platform, FlashLib introduces the Hardware Abstraction Layer. The HAL provides an abstract layer with changable implementations so that interacting with hardware and electronics would not require rewritting code. Note that because of the amount of platforms available, FlashLib cannot provide implementations for all of them, so users might have to implement their own hardware code.
You can read more about it in this wiki page.
Humans are considered social creatures and like them, robots need to communicate too. So when our robot software need to communicate with a remote software, we need to create something to send and receive data as well as manage the data accordingly. Instead of always needing to do so, FlashLib introduces the Communication Management System which allows users to communicate with remote softwares and easily manage incomming data on both sides.
Check out the systems wiki page for more information.
Image processing is awesome. It copies the power of the human eyesight and allows our robot to collect more data from its surroundings. But, for all its merits, it is extremely difficult to code. So FlashLib introduces the Dynamic Vision System which makes image processing a lot easier to execute and control.
You can read this wiki page for more information.
Manually controlling a robot can be difficult (from experience) and to perform certian tasks, operators need access to sensor information or visual data. So like car drivers, they need a dashboard. Flashboard is a smart dashboard software which provides that and more.
You can read all about it here.