Merge branch 'devel' of github.com:madcowswe/ODrive into devel

This commit is contained in:
Oskar Weigl
2019-05-26 18:55:34 -07:00
6 changed files with 54161 additions and 1 deletions
+5
View File
@@ -50,6 +50,11 @@ float ODriveArduino::readFloat() {
return readString().toFloat();
}
float ODriveArduino::GetVelocity(int motor_number){
serial_<< "r axis" << motor_number << ".encoder.vel_estimate\n";
return ODriveArduino::readFloat();
}
int32_t ODriveArduino::readInt() {
return readString().toInt();
}
+2
View File
@@ -28,6 +28,8 @@ public:
void SetVelocity(int motor_number, float velocity, float current_feedforward);
void SetCurrent(int motor_number, float current);
void TrapezoidalMove(int motor_number, float position);
// Getters
float GetVelocity(int motor_number);
// General params
float readFloat();
int32_t readInt();
+7
View File
@@ -0,0 +1,7 @@
---
BasedOnStyle: Google
AlignConsecutiveAssignments: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
IndentWidth: '4'
...
+1
View File
@@ -15,6 +15,7 @@
"interface/stlink-v2.cfg",
"target/stm32f4x_stlink.cfg",
],
"svdFile": "${workspaceRoot}/Board/v3/STM32F40x.svd",
"cwd": "${workspaceRoot}"
},
{
-1
View File
@@ -1,5 +1,4 @@
{
"C_Cpp.clang_format_style": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0 }",
"C_Cpp.intelliSenseEngine": "Default",
"C_Cpp.intelliSenseEngineFallback": "Disabled",
"files.exclude": {
File diff suppressed because it is too large Load Diff