Fusion Arduino SDK Functions
begin
void FusionArduino::begin(HardwareSerial& port, uint32_t baud);
Parameters
| Name |
Type |
Required |
Description |
port |
HardwareSerial& |
Yes |
Serial port. |
baud |
uint32_t |
Yes |
Baud rate (usually 115200). |
Example
#include <FusionArduino.h>
FusionArduino ksa;
const int baud_rate = 115200;
void setup()
{
Serial.begin(baud_rate);
ksa.begin(Serial, baud_rate);
}
update
void FusionArduino::update();
Parameters
| Name |
Type |
Required |
Description |
| None |
Example
void loop()
{
ksa.update();
delay(10);
}
setThrottle
void FusionArduino::setThrottle(float throttleVal);
Parameters
| Name |
Type |
Required |
Description |
throttleVal |
float |
Yes |
Throttle value. |
Example
ksa.setThrottle(0.5);