Comments (11)
Hi,
Rather than going for the EEPROM, I suggest using the flash:
https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/config/flash_storage.c
https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/config/config.c
@pavel-kirienko Could you maybe provide some additional guidance? @dominiho This is the flash based param storage I was referring to.
from px4-flow.
I think you meant to tag @pavel-kirienko.
from px4-flow.
Thanks, indeed!
from px4-flow.
It's quite easy. Add the files to the project and make sure this condition handles your MCU correctly.
Then use it like that:
- https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/motor/realtime/motor_rtctl.c#L187
- https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/motor/realtime/motor_rtctl.c#L209
- https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/uavcan_node/uavcan_node.cpp#L138
from px4-flow.
Cool, I'll see what I can do. Hopefully this isn't too critical and I can take my time on this.
from px4-flow.
Just to be sure I'm going down the right path with this. So the px4esc uses ChibiOS so I can't just shove those files into the px4flow code as is. But I should be able to implement a similar structure using the functions defined in https://github.com/PX4/Flow/blob/master/lib/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx_flash.h is this correct?
from px4-flow.
Yes, you'll need to replace the calls specific to ChibiOS, which is easy to do. I think you only need to replace these:
- chMtxInit() - inits a mutex (can be removed if thread safety is not required)
- chMtxLock() - locks a mutex
- chMtxUnlock() - unlocks a mutex
- chSysLock() - disables IRQ
- chSysUnock() - enables IRQ
But I should be able to implement a similar structure using the functions defined in https://github.com/PX4/Flow/blob/master/lib/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx_flash.h is this correct?
I highly recommend you to stay away from STM32's SPL, it's virtually unusable. You can use https://github.com/pavel-kirienko/px4esc/blob/master/firmware/src/config/flash_storage.c if you provide needed register definitions, like https://github.com/ChibiOS/ChibiOS-RT/blob/stable_2.6.x/os/hal/platforms/STM32F1xx/stm32f10x.h#L916.
from px4-flow.
@andre-nguyen Any news on this? 8). Seems like a popular feature request.
from px4-flow.
Sadly no :(
So busy with the start of the school year with all the funding reports I have to write and the recruitment of new team members. It's still in the pipeline though since were investigating the possibility setting up a project for someone to attempt to fuse two optical flows. I can also say that there won't be progress for probably the next 2 weeks.
from px4-flow.
Hi guys,
I was dealing with the same problem, and finally in my case I changed the firmware with the parameters that I want and I flashed the sensor with the bootloader (i.e. in the "settings.c" file). In my case, it works because I don't need to change too much those parameters once set.
from px4-flow.
@jgoppert In case you're tired resetting parameters all the time - could be actually quite quick.
from px4-flow.
Related Issues (20)
- What is the official release commit? HOT 1
- Why use flow as a angular sensor rather than a linear velocity/position sensor? HOT 3
- PX4FLOW can not work outside HOT 1
- PX4FLOW and PixHawk 4 mini issue HOT 1
- px4flow sonar no distance. Help! HOT 5
- Vehicle reject position control when using optical flow HOT 2
- Firmware version onboard HOT 2
- Binning HOT 4
- Links in the readme become unavailable HOT 2
- Sonar requirements HOT 1
- Using px4flow as a robot-cart part HOT 6
- usage of ABSDIFF macro in flow.c
- Move to Python3
- How good is the pose estimation at 18 m HOT 1
- Error in build HOT 3
- Data Output from PX4Flow camera board
- <uavcan/protocol/GetNodeInfo.hpp> not detected HOT 2
- Low and fluctuating quality of flow over i2c while USB works fine HOT 4
- Strange local_position_ned and need for a "forced" reboot to work
- Live video view Totally Striped with VIDEO_ONLY = 0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from px4-flow.