Comments (4)
I would be totally on board. I wouldn't be opposed to going to c++, since that would make things a lot easier, but moving to C++ would probably require a huge re-vamp of our stuff. Perhaps let's not do that quite yet.
What if instead we used the board.h header like you said above? That seems the most straight-forward. This also would make it easier to switch to the F3 or F4 chips when we are ready. I'm on board, and it shouldn't be too bad. Let's get the controller working first. I think we are about there. I'll go test it right now, and if it works, I'll do a pull request.
from rosflight_firmware.
It sounds like you guys are really forging ahead with this project! I'm especially interested in seeing how you work with the new F3 and F4 flight-control boards. I tried working F3 support into BreezySTM32 but gave up after realizing I was in over my head.
As for going to C++, I'm not sure whether you mean switching to C++ from straight C, or going to C++ from a completely different language. If it's just C -> C++, I wouldn't worry too much: my C++ firmware in Hackflight is really just C with a thin wrapper of C++ classes. Looking back on it, I could just have easily stuck with the original Baselfight approach: a bunch of C modules with static variables and methods for their "private" components, and extern for the "public". Since I'm not creating more than one instance of anything, C++ provides no real advantage. I had to wrap everything in "extern C {" to get it to work with Breezy STM32.
from rosflight_firmware.
Hi @simondlevy, thanks for the input! We'll keep you posted on the progress with the F3/F4 boards, but that's probably not going to happen until a little later down the line.
We were talking about going the C -> C++ route. It's good to get your insight having tried it out. I think the only reason we would do it is to make the code more readable and a little better organized. We may make the switch at some point, but the C version really isn't too bad so we will probably just push ahead with that for now.
from rosflight_firmware.
Completed by #103
from rosflight_firmware.
Related Issues (20)
- Binary built from source reports wrong version HOT 1
- Documentation parameter PARAM_ARM_STICKS doesn't exist HOT 2
- Add tests for re-arming after hardfault recovery
- Add documentation about hardfault recovery behavior.
- clang-format
- UBLOX receiver support
- RC_NUM_CHN - Switch to 8 channels by default
- Failed to open serial port HOT 7
- Support for servos HOT 4
- Arming from companion computer HOT 3
- Identity mixer for direct motor control HOT 1
- RC_LOST error persistent using SBUS HOT 3
- Hi everybody
- Can't fly the drone HOT 1
- Add Configrator HOT 2
- Set up auto-generated Docker workflow
- Scrub or replace MAVlink messages
- Update mixing system to be more flexible HOT 2
- Documentation for board.h
- Measure round-trip communication delay HOT 1
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 rosflight_firmware.