Skip to content

Commit 767a276

Browse files
committed
Merge branch 'devel'
2 parents d2e975b + b0a16b8 commit 767a276

File tree

19 files changed

+54285
-43
lines changed

19 files changed

+54285
-43
lines changed

Arduino/ODriveArduino/ODriveArduino.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ float ODriveArduino::readFloat() {
5050
return readString().toFloat();
5151
}
5252

53+
float ODriveArduino::GetVelocity(int motor_number){
54+
serial_<< "r axis" << motor_number << ".encoder.vel_estimate\n";
55+
return ODriveArduino::readFloat();
56+
}
57+
5358
int32_t ODriveArduino::readInt() {
5459
return readString().toInt();
5560
}

Arduino/ODriveArduino/ODriveArduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class ODriveArduino {
2828
void SetVelocity(int motor_number, float velocity, float current_feedforward);
2929
void SetCurrent(int motor_number, float current);
3030
void TrapezoidalMove(int motor_number, float position);
31+
// Getters
32+
float GetVelocity(int motor_number);
3133
// General params
3234
float readFloat();
3335
int32_t readInt();

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Unreleased Features
22
Please add a note of your changes below this heading if you make a Pull Request.
33

4+
# Releases
5+
## [0.4.11] - 2019-07-25
6+
### Added
7+
* Separate lockin configs for sensorless, index search, and general.
8+
* Check current limit violation: added `ERROR_CURRENT_UNSTABLE`, `motor.config.current_lim_tolerance`.
9+
10+
### Changed
11+
* Ascii command for reboot changed from `sb` to `sr`.
12+
413
# Releases
514
## [0.4.10] - 2019-04-24
615
### Fixed

Firmware/.clang-format

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
BasedOnStyle: Google
3+
AlignConsecutiveAssignments: 'true'
4+
AllowShortCaseLabelsOnASingleLine: 'true'
5+
IndentWidth: '4'
6+
7+
...

Firmware/.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"interface/stlink-v2.cfg",
1616
"target/stm32f4x_stlink.cfg",
1717
],
18+
"svdFile": "${workspaceRoot}/Board/v3/STM32F40x.svd",
1819
"cwd": "${workspaceRoot}"
1920
},
2021
{

Firmware/.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"C_Cpp.clang_format_style": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0 }",
32
"C_Cpp.intelliSenseEngine": "Default",
43
"C_Cpp.intelliSenseEngineFallback": "Disabled",
54
"files.exclude": {

Firmware/Board/v3/Drivers/CMSIS/Include/cmsis_gcc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void)
161161
*/
162162
__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
163163
{
164-
__ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp");
164+
__ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : );
165165
}
166166

167167

@@ -187,7 +187,7 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void)
187187
*/
188188
__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
189189
{
190-
__ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp");
190+
__ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : );
191191
}
192192

193193

0 commit comments

Comments
 (0)